linq to sql or ado.net entity framework?

A

Andy B

I have to learn how to do one or the other: linq to sql or ado.net entity
framework. There will be overhead no matter what way I go since I don't know
either one. Which one would be the best one to use overall?
 
J

John Saunders

Andy B said:
I have to learn how to do one or the other: linq to sql or ado.net entity
framework. There will be overhead no matter what way I go since I don't
know either one. Which one would be the best one to use overall?

I would learn Entity Framework. LINQ to SQL is meant to be a one-to-one
mapping to your database. OTOH Entity Framework gives you the flexibility to
have an entity model that works in your code at the same time as a database
model that works in the database.

One example is that you can do inheritance. You can have a "Person" entity
that both "Employee" and "Customer" entities derive from.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top