Last post Mar 29, 2010 04:16 PM by DigiMortal
Mar 29, 2010 12:39 PM|students|LINK
Is the entity framework (EF) using instead of custom entities or using
with custom entities?
Mar 29, 2010 01:25 PM|Mikesdotnetting|LINK
Custom entities are generally ones that you need to create because there is nothing in the .NET Framework that will do. This generally covers any object, such as Person, Order, Product etc. Whether you hand code them or use a code generation tool (like an
ORM) to generate them for you, they are still custom to your application.
Mar 29, 2010 03:05 PM|atconway|LINK
Look to the following for more information, and to help clear up your question:
Customizing Objects (Entity Framework):
Mar 29, 2010 03:41 PM|students|LINK
Sorry,but this point isn't clear to me:
I think that when I use the EF it generates its own entities,so I was thinking that I don't need the custom objects (custom business entities)
any more ??
Mar 29, 2010 04:16 PM|DigiMortal|LINK
You can use your custom entities (custom classes) with Entity Framework 4.0. Previous versions use only automatically generated classes that now a lot of things that business classes should not know (persistence details). If you want to use your own classes
with Entity Framewrok you can read my blog posting
Entity Framework 4.0: How to use POCOs.
POCO means Pure Old CLR Object. It is object without any ballast like persistence details, database communications etc.