I have simple task. I need map reference to properity and their ID to other properity.
If I use this map I get error:
"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);