Well turns out I am indeed using an older version. Of course, I probably should've checked this and posted this information in the first place.
Version number is 1.0.2003.3.
Build is 04302004.
The code you requested looks like this:
BEntity bEntity = new BEntity();
bEntity.Information = "lala";
bEntity.IsNew = true;
bEntity.A = aEntity;
aEntity.B.Add(bEntity);
CEntity cEntity = new CEntity();
cEntity.SomeData = 24;
cEntity.IsNew = true;
cEntity.B = bEntity;
bEntity.C.Add(cEntity);
DEntity dEntity = new DEntity();
dEntity.SomeData = 1;
dEntity.MoreData = 2;
dEntity.IsNew = true;
dEntity.C = cEntity;
cEntity.D = dEntity;
I know the IsNew property isn't really necessary but it's how it looks now (I was trying different things).
As a side note, I thought what the hell let's try the new september 30 runtime libraries instead of just replacing my templates with the may 26 ones you mentioned, but alas the code generated with the september 30 version (I just downloaded it a short while ago) doesn't compile
. It looks like it got confused generating some relations code:
/// <summary>
/// Returns a new IEntityRelation object, between ABranchIssuerEntity and ABranchIssuerBEEntity over the 1:1 relation they have,
/// using the relation between the fields:
/// ABranchIssuer.IdAIssuer - ABranchIssuerBE.IdAIssuer
/// ABranchIssuer.IdABranchIssuer - ABranchIssuerBE.IdABranchIssuer
/// </summary>
public IEntityRelation ABranchIssuerBEEntityUsing {
get {IEntityRelation relation = new EntityRelation(RelationType.OneToOne);
relation.StartEntityIsPkSide = ;
return relation;
}
}
It's easy to see why that won't compile, but I wonder why it generated that? those tables have a very innocent looking FK relationship between them based on two int fields.
I'd love your insight on this too!
thanks,
álvaro.-