Home > Net >  EF framework
EF framework

Time:12-25

So what is the ORM,
The full name of the Object Relational Mapping, Object Relational Mapping,
How to say, in order to more simple deep communication with a database, we introduce the framework, we use entity class to the database,
Our operating entities corresponding to the relationship between database tables, entity attributes in the corresponding to the data in the table fields,

For example, I set a db its corresponding class is one of my databases,
The Students is a database of Students a table, if you want to query,
Var students=(from s students in
Where s.N ame=="idea"
The select s) ToList ();
This is equivalent to the query,
The SaveChanges ();
This is stored, when the db as a database, we changed the table, save it now,

CodePudding user response:

Do you want to blog?
  • Related