Home  /  Questions  /  Question



55   94.7
Nov 09, 2010


Self Tracking Entities example with Entity Framework 4.0

Hi there,

Are there any plans to provide examples on how to use Self Tracking Entities with the DoFactory design patterns?
I am very interested in seeing and implemenation of the Client Change Tracking approach.

Thanks a lot.



55   94.7
Dec 20, 2010
Hi Dan,

Thanks for your response. Look at the following post by Tony Seed's and let me know what you think? It looks like using Tony's approach you need less code the client and would work well on a big size project.

http://blog.tonysneed.com/2010/04/21/webinar-n-tier-entity-framework-with-dtos/


Thanks



 

830   99.9
Dec 12, 2010
Yassin:

Self Tracking Entities are interesting as they have no dependencies of the Entity Framework and the client can be ignorant of the persistance model. 

While this is true, there is no free ride and to get all the benefits you most likely end up writing DTOs (or use AutoMapper), just like we do in the DoFactory patterns.  The details are very well explained in this article:

http://www.dotnetconsult.co.uk/weblog2/PermaLink,guid,b9c1ff65-8823-4a5e-ae07-7531c258a5ac.aspx

We will continue to look into Self Tracking Entities but at this point we have no plans to include these in our next release of Design Pattern Framework.

I hope this answers your question.