Mapping of interconnection with nhibernate

Posted by Mauro Destro on Stack Overflow See other posts from Stack Overflow or by Mauro Destro
Published on 2010-04-29T09:27:52Z Indexed on 2010/04/29 9:37 UTC
Read the original article Hit count: 311

I have to describe interconnection between objects.

public class Entity
{
    public string Name {get;set;}
    public IList<Entity> Connections {get;set;}
}

How can i persist this?

I add another layer of complexity: querying on a specific date a connection between two entities can't be already defined. So probably I need a support table that contain a structure like Id, Source, Destination, ValidFrom, ValidUntil

Mauro

© Stack Overflow or respective owner

Related posts about fluent-nhibernate

Related posts about nhibernate-mapping