Entity Framework + Repository + Unit of Work(sharp-code.net)

submitted by VelcrowVelcrow(50) 9 months, 17 days ago

The topic of this post is presentation an implementation of two quite popular data access patterns – Repository and Unit of Work – in Entity Framework.

2 comments |category: |Views: 107

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by vijaystvijayst(1311) 9 months, 16 days ago 0

Unit of Work is something that looks interesting. I have a XML based application. I am looking for something like transactions that can commit or rollback a block of actions. Unit of Work pattern is something that I can implement.

Reply

posted by dpetersondpeterson(4397) 9 months, 14 days ago 0

You should also note that the unit of work pattern is implemented in the EF context classes, as well as NHibernate's Session object.
I would recommend picking up a copy of Martin Fowler's book http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420
He covers these sort of design patterns in detail, and explores when they are most useful.

Reply

information Login or create an account to comment on this story