Hi Ibrahim,

You have the wrong email address but anyway...

IRepository interface will sit on the top, you other object interfaces
"IContact" will inherit from this interface.
You will put all common methods in IRepository (Add(), Delete(), New()) but
specific methods will go to the other interfaces.

The mappings will differ of the framework you are using. But normally they
sit in under the implementations folder. (This folder usually exists inside
the Data project)

Hope this helps.






On Sat, Sep 10, 2011 at 9:22 AM, Ibrahim, A <giddyup...@gmail.com> wrote:

> Hi,
>
> Trying to get an understanding of how nhibernate is setup.
>
> So there is a generic Repository (IRepository) that is used I noticed, so
> you basically create a private variable and pass in the type of the
> repository for the given entity like:
>
> private readonly IRepository<ContentItemRecord> _contentItemRepository;
>
>
> This means that each entity can only have the methods defined in
> IRepository, don't some entities have additional methods?  i.e. this would
> require a seperate file like ContentItemRepository.cs that would implement
> IRepository and then somehting like IContentItemRepository.
>
> 1. Does this exist anywhere?
>
>
> 2. Where are the mappings for each model?
>

Reply via email to