Avatar of ulf-jzl
ulf-jzl
Flag for Sweden asked on

EF 4.3: Code First - UnitOfWork & Generic Repository

Hi guys!

I need some help to find some good examples that uses the following:

- Code First (POCO)
- DbContext
- Mapping
- Generic Repository, IRepository<T>
- UnitOfWork, IUnitOfWork

I found this code (http://code.google.com/p/ef4prs/), it has the things I need but it uses a bit too much special code, what I need is a more simpler approach, then using  his ObjectContextBuilder.


Any tips of good examples on this?

Thx :-)
C#Microsoft SQL Server

Avatar of undefined
Last Comment
ulf-jzl

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ukerandi

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
ukerandi

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ulf-jzl

ASKER
Thx!

I'm looking for a example that shows UnitOfWork "separated" from the Context class. Where you will have one IUnitOfWork and one UnitOfWork, where these classes are not tightly coupled with the context class.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck