Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Type Provider for Entity Framework

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?

like image 904
J Cooper Avatar asked Sep 30 '11 00:09

J Cooper


People also ask

What are the three types of Entity Framework?

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.

Should I use EF6 or EF core?

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.

What is entity type in Entity Framework?

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.


1 Answers

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).

like image 107
Stephen Swensen Avatar answered Oct 25 '22 11:10

Stephen Swensen