Posts

Showing posts from November, 2022

Entity Framework VS ADO.NET

Image
Entity Framework Entity framework  is ORM Model, which used LINQ to access database, and code is autogenerated. 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. Entity Framework  as it translates LINQ queries to SQL first then process the query. First time  EF  loads metadata into memory, that takes a time. It builds in-memory representation of model from edmx file, or from source code if you are using code first. EF  is built at the top of  ADO . NET , so it cannot be  faster . But it makes development much  faster Entity Framework  is an open-source ORM  framework  for . NET applications supported by Microsoft. It use LINQ which is simpler, tidier, and higher-level e.g using (var context = new CompanyContext())  {  var emp = context.Employee;  }    ADO.NET ADO . NET is  made of...