I am new to Fluent NHibernate and have been unable to figure out how to map composite keys.
How can I do this? What approach do I need to take?
There's a CompositeId method.
CompositeId
public class EntityMap : ClassMap<Entity> { public EntityMap() { CompositeId() .KeyProperty(x => x.Something) .KeyReference(x => x.SomethingElse); } }
1.4m articles
1.4m replys
5 comments
57.0k users