What is EF? (EF Basic series)

Source: Internet
Author: User

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:
    1. Dataobjects.net
    2. NHibernate
    3. OpenAccess
    4. Subsonic
    5. 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.