Would it be possible to create a type provider in F# 3.0 for Entity Framework, so that I can get neat IntelliSense like with the SqlDataConnection (included in Microsoft.FSharp.Data.TypeProviders) but with EF under the hood?
There are three approaches to model your entities in Entity Framework: Code First, Model First, and Database First. This article discusses all these three approaches and their pros and cons.
Keep using EF6 if the data access code is stable and not likely to evolve or need new features. Port to EF Core if the data access code is evolving or if the app needs new features only available in EF Core. Porting to EF Core is also often done for performance.
An entity in Entity Framework is a class that maps to a database table. This class must be included as a DbSet<TEntity> type property in the DbContext class. EF API maps each entity to a table and each property of an entity to a column in the database.
They already provide two Entity Framework type providers out of the box. The EdmxFile type provider for disconnected EDMX files, and the SqlEntityConnection type provider for live database connections (the latter being akin to the SqlDataConnection
type provider).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With