I'm trying to automap a class Code. Codes can have (Sub)Codes.
public class Code
{
public virtual string Key{get;set;}
public virtual Code Parent{get; set;}
public virtual ICollection<Code> SubCodes{get;set;}
private ICollection<Code> subCodes = new Collection<Code>();
}
This works but I get column IdParent and an IdCode column in my table. Naming the Parent property IdCode doesn't help then I get an IdIdCode column and the IdCode
What do I need to do to fix this.
I use Automapping with a Configuration object