Well I tried to build a project to show you exactly the problem and to prove I could replicate it, of course, it worked just fine in my test.
So I went ahead and created a new project to see if a clean start would resolve the issue. It did, however now I get a different problem.
I'm using a Target-per-Entity
Now in every one of my Sub-Type classes I get two IEntityRelationObjects that are identical. (The Relation object that defines the relationship between the Child and Parent in this case Customer -- Entity)
If I delete them, everything complies, but when I regen they come back.
an example
/// <summary>Returns a new IEntityRelation object, between CustomerEntity and EntityEntity over the 1:1 relation they have, using the relation between the fields:
/// Customer.EntityId - Entity.EntityId
/// </summary>
public override IEntityRelation EntityEntityUsingEntityId
{
get
{
IEntityRelation relation = base.EntityEntityUsingEntityId;
relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CustomerEntity", true);
return relation;
}
}
/// <summary>Returns a new IEntityRelation object, between CustomerEntity and EntityEntity over the 1:1 relation they have, using the relation between the fields:
/// Customer.EntityId - Entity.EntityId
/// </summary>
public override IEntityRelation EntityEntityUsingEntityId
{
get
{
IEntityRelation relation = base.EntityEntityUsingEntityId;
relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CustomerEntity", true);
return relation;
}
}