Thanks Brian,

I guess firsts the base repository is intended to just expose the few simple
CRUD operations, I then implement a domain specific repository:

interface ICustomerRepository : IRepository<Customer, Guid> { }
CustomerRepository : Repository<Customer, Guid>, ICustomerRepository { }

Then I end up adding the GetCustomerWhereActive() for example in my
CustomerRepo, now I know this might not be the best, but re writing simple
crud for each repository seems like
a time waster.

In terms of the UnitOfWork, your implementation sounds interesting, I guess
the only thing mine is tied to NHibernate, which does not really bother me
as I do not find myself
ever moving away from NHibernate.


Thanks
Stefan

On Tue, Jul 13, 2010 at 3:35 AM, José F. Romaniello
<[email protected]>wrote:

> Why another UoW? ISession is your unit of work.
>
> Where do you use this code?
>
> 2010/7/12 Stefan Sedich <[email protected]>
>
>> Hi,
>>
>> I have created a UnitOfWork implementation, I wanted something simple for
>> my MVC apps, and do not need anything like nested UoW etc.
>>
>> I have it on GitHub
>> http://github.com/stefansedich/YetAnotherUtilsLib/tree/master/src/YetAnotherUtilsLib.Core/NHibernate/
>>  if
>> someone would care to give me some thoughts.
>>
>>
>>
>> Thanks
>> Stefan
>>
>> --
>> Stefan Sedich
>> Software Developer
>> http://weblogs.asp.net/stefansedich
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "nhusers" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<nhusers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>



-- 
Stefan Sedich
Software Developer
http://weblogs.asp.net/stefansedich

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to