0
我有簡單的任務。我需要地圖參考本質和他們的ID其他本質。NHibernate映射參考和參考ID
如果我用這個地圖我得到錯誤:
"Additional information: Invalid index 24 for this SqlParameterCollection with Count=24."
public CityMap()
{
Map(x => x.Name).Not.Nullable();
//Map(x => x.AddressID); //This line makes trouble
References(x => x.Address);
'public virtual int AddressId {get {return Address.Id; }}'? –