Dofactory.com
Dofactory.com
 Back to list
Views:   14.4K
Replies:  2
Archived

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.
Yassin Khan, Nov 09, 2010
Reply 1
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



 
Yassin Khan, Dec 20, 2010
One more link, helps to remove conditional check. http://www.codeproject.com/KB/architecture/FactoryPattern.aspx
Sep 07, 2010
Reply 2
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.




Dan McMillan, Dec 12, 2010
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.