NB: tested only on NH2 project
, , , , , TL;DR , Product_id Spring_id Story redundant - HasMany(x => x.Stories) SpringMap ProductMap. CardMap References(x => x.Product References(x => x.Sprint).
, ProductMap.cs:24-25 SprintMap.cs:22 .
, , .
, , . , :
ProductMap.cs
HasMany(p => p.Stories)
.KeyColumn("ProductOwner_id")
.Inverse();
SprintMap.cs
HasMany(s => s.Stories)
.KeyColumn("SprintOwner_id")
;
CardMap.cs
References(c=>c.Product)
.Column("Product_id")
.Not.Nullable();
References(c=>c.Sprint)
.Column("Sprint_id")
.Nullable();
, 1: N / "". , .
. , ( CardMap.cs) - - , Sprint_id SprintOwner_id. , - , - , , /nhibernates- , .