EF-Generated backgrounds:Writing code that accesses data from ADO is tedious and tedious, so Microsoft provides an object-relational mapping framework (which we call EF) that automatically helps our programs generate related database activities through EF.the definition of EF:EF is a framework for object-relational mapping, which ensures that programmers use the relevant data as a special domain object, reducing the amount of code that programmers write to access the database. Developers, using LINQ to query, retrieve, manipulate data for strongly typed objects to handle. The EF Framework provides change tracking, identity recognition, lazy loading, and query transformations, so developers can focus on the logic code in their programs, rather than on the basis of data access.three scenarios for EF:1. Generate related classes based on existing databases; 2. Generate a database based on the relevant domain class; 3. In a visual designer, create classes and databases;
What is O/RM? ORM is a tool that can automatically store data in a domain object in a database (such as MS SQL Server) without requiring much programming. The O/RM contains 3 main sections: 1. Domain class object 2. Relational database objects 3. Mapping information (domain objects, how do I map to database objects "tables, views, stored Procedures"?) ORM allows us to separate the database design from the domain class design, which ensures the maintainability and extensibility of the program, and ORM also automatically helps us generate additions and deletions (curd) operations, so we don't have to write them manually.
Tips: To learn more about ORM technology, you can access this link:object-relational MappingORM Framework Categories:
- Dataobjects.net
- NHibernate
- OpenAccess
- Subsonic
- Please note: EF is the Open source ORM framework of Microsoft, so-called open source is you can participate in development, interested can go to this site to see:CodePlex.
Well, that's the end of the introduction to EF. Continue to update the back, feel good, park friends can praise, your support is my motivation to move forward!
What is EF? (EF Basic series)