What is Entity Framework in .NET Framework? Last Updated : 09 Aug, 2019 Comments Improve Suggest changes Like Article Like Report Entity Framework is an open-source object-relational mapper framework for .NET applications supported by Microsoft. It increases the developer's productivity as it enables developers to work with data using objects of domain-specific classes without focusing on the underlying database tables and columns where this data is stored. It eliminates the need for most of the data-access code which is used to interact with the database that developers usually need to write. It provides an abstract level to the developers to work with a relational table and columns by using the domain-specific object. It also reduces the code size of the data specific applications and also the readability of the code increases by using it. This is a new technology for accessing the data for Microsoft application. The latest version for Entity Framework is 6.0. The following figure describes where the Entity Framework present in your application. The above figure represents how an entity framework interacts with the domain class and database. It provides a connection between the business entity and data tables in the database. It saves data stored in the properties of business entities and also retrieves data from the database and converts it to business entities objects automatically. Entity Framework will execute the relevant query in the database and then materialize results into instances of your domain objects for you to work within your app. Conceptual Model When defining the class and features of entity framework first and then entity framework convert it into the conceptual model first and it creates database and objects in the database from the conceptual model this method is called Code First. Now your object directly works with the database to retrieve or make changes. Features of Entity Framework It is platform independent. It uses LinQ queries to manipulate the data in the database instead of SQL queries. It keep the track of values that have been changed of the properties of entities. It also save changes which are done insert, delete or update operations. It also handle concurrency so the data override by a user and will reflect when another use fetches it. It also handles transaction management automatically and also provides the customize options for transaction management. It provides caching which means it stores the result of the frequently used queries. It also follow certain conventions for programming so it by default configure the EF Model. It also allows to configure the EF Model by a fluent API to override the default convention. If you made any changes in database schema then you can reflect those changes in EF model by writing migration command in CLI(Command Line Interface). It also support stored procedure. It also support parameterized queries. Reference: https://docs.microsoft.com/en-in/ef/ef6/ Comment More infoAdvertise with us Next Article What is Entity Framework in .NET Framework? P ParthManiyar Follow Improve Article Tags : C# Similar Reads Introduction to .NET Framework The .NET Framework is a software development framework developed by Microsoft that provides a runtime environment and a set of libraries and tools for building and running applications on Windows operating systems. The .NET framework is primarily used on Windows, while .NET Core (which evolved into 6 min read Characteristics of .NET Framework .NET is a software framework that is designed and developed by Microsoft. The first version of the .Net framework was 1.0 which came in the year 2002. In easy words, it is a virtual machine for compiling and executing programs written in different languages like C#, VB.Net, etc. .NET is the framewor 5 min read Difference Between .NET and ASP.NET Framework .NET Framework is used to develop Form-based applications, Web-based applications, and Web services. It is used to develop both desktops as well as server-based applications. There is a variety of programming languages available on the .Net platform, VB.Net, and C# being the most common ones. It is 2 min read Differences Between .NET Core and .NET Framework .NET Core is a free open source, a general-purpose development platform for developing modern cloud-based software applications on Windows, Linux, and macOS operating systems. It operates across several platforms and has been revamped to make .NET fast, scalable, and modern. .NET Core is one of Micr 4 min read .NET Framework Class Library (FCL) The Framework Class Library or FCL provides the system functionality in the .NET Framework as it has various classes, data types, interfaces, etc. to perform multiple functions and build different types of applications such as desktop applications, web applications, mobile applications, etc. The Fra 3 min read Like