entity framework 4 - What is the best approach when trying to use POCO with EF4? -


i have read here 3 approaches towards implementing poco entity framework namely

  1. create edmx model , turn off code generation model not create heavy entities you. create poco classes have follow restrictions.
  2. you can use poco template can downloaded vs 2010.
  3. use code first approach code pocos , define mapping in code. need ef 4.0 feature ctp here.

i going opt second approach quicker things should keep in mind since derives objectcontext guess in way coupled? know third approach gives flexibility worth ? please share thoughts regarding this..thanks!

that link have provided "poco template" broken - assume mean this:

http://visualstudiogallery.msdn.microsoft.com/23df0450-5677-4926-96cc-173d02752313

this template can (and should) used in conjuction option 1 have stated.

that's use in current application:

1 - create edmx model

2 - turn off code gen

3 - use poco generator generate poco classes

the poco's not derive - pure poco's.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -