Entity Framework is an Object relation Management (ORM) from Microsoft
ADO.NET Vs Entity Framework
ADO.NET |
Entity Framework |
Ado.net is faster |
EF will be
around the ADO.net which means ADO.NET is faster then EF |
We need to write
so much code to talk to database |
Easy to use. As an EF will
talk to database without much code involved |
Performance
is better than EF |
Performance
is not good compared to ADO.NET |
Linq to SQL Vs Entity Framework
LINQ to SQL |
Entity Framework |
Supports only
for SQL database |
Supports
database like SQL,Mysql,DB2 etc. |
Allows only
one to one mapping between the entity classes and the relational table |
Allows one to
one , one to many & many to many mappings between the entity classes and
the relational tables |
.dbml file is
generated for maintaining the relationship |
Relationships
are maintained in 3 different files .csdl,.msl and .ssdl |
- Database First
- Model First
- Code First
- Lazy Loading
- Eager Loading
- Explicit Loading
- Dependent/related entities are loaded once they are accessed for the First time
- Delay the loading of related object until it is required
No comments:
Post a Comment