"Oscar Thornell" <(E-Mail Removed)> wrote in
news:BB0E6160-50BA-415B-A160-(E-Mail Removed):
> In my view change tracking in EF
> 1.0 is seriously broken for any type of server oriented application
> (request/response pattern) involving more than one entity at a time
> i.e. objectgraphs.
Agree whole heartedly. It is also a bad model, until POCO support, for SOA
implementation that cross platform boundaries.
> ..and now once more I am standing in front of the same dilemma. The
> technical requirement is simple: a layered ASP.NET application that
> uses EF. I am free to start using VS.NET 2010 beta 2 and the EF 4.0
> framework. The POCO/T4 support in EF 4.0 is a good start and gives us
> the possibilities of a separation for the model in a more DDD centric
> approach. But what about change tracking for object graphs in a
> dettached/attached mode? Has EF 4 given us anything in this area? Or
> do we still need to wrap each entity in the model in an ObjectProvider
> pattern and handle every entity separately in the ASP.NET client?
>
> Does it exsist a best practice from Microsoft (or anywhere else)? If
> so please share a link...
Check out this Developmentor article:
http://www.develop.com/entityframework4
It is a good entry and deals with the T4 templates and how you
ApplyChanges. I have not played through the whole scenario you have here,
so I cannot state fully whether or not EF 4 soles everything or not.
Peace and Grace,
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Twitter: @gbworld
Blog:
http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
*******************************************