views:

49

answers:

1

I have a database and bunch of related tables . I just want to use EF to reduce Data-Access code for CRUD operations on those table. I dont want to change the model or anything. I am using the models as It is generated(or using POCO). Is it fair to use EF just for this(to reduce the data-access code) or it is overkill and i should think about DDD. Any directions?

This is a good question. Any other thought?

EDIT

I just wanted to ask If that is a good idea to use this just as an ORM. Honestly, I am very new to EF and know nothing about DDD and just wanted to use EF to reduce data-access code I have been writing all this while

+1  A: 

Yes, you can use Entity Framework without knowing or implementing DDD. DDD does not require an ORM or a relational database. Using an ORM does not imply that you must, or even that you should, use DDD.

Many people who implement DDD on top of a relational database use an ORM like Entity Framework or NHibernate and it is a good idea to do so if you are in that situation.

At this point, it's difficult to justify not using an ORM on most projects that involve an object oriented programming language and a relational database. Not having time for the learning curve ORMs require is the biggest reason not to use an ORM. In the .NET world, there are solid, mature ORM options available.

Michael Maddox