I want to map both the foreign key as a POCO property and the navigation property. IE in the example here , the answer substitutes the foreign key
public virtual int SongArtistID { get; set; }
I want to keep that key in the mapping. I have tried so far:
Map(x => x.ParentID);
References(x => x.Parent).Column("ParentID");
Map(x => x.ParentID);
References(x => x.Parent, "ParentID");
and many other combinations using the fluent mapper but I can't get it working. The problem is that the References()
directive always creates an extra column.