Page 1 of 1

Selft tracking entity fixup problem

Posted: Fri 02 Aug 2013 08:12
by McMlok
Hi,

I'm using Self-tracking entity for entity generation. When Fixup method is generated there is swap property name of in section for new items in foreach loop.

I have

Code: Select all

class A
{
  Id,
  Name,
  List<ClassB>
}

class B
{
  BId,
  Name
}
in fixup template generate code like this

Code: Select all

item.Id = BId;
I thing there is problém in template becouse when for each is generated, it's generated for class relationProperty.RelationClass.Name. Than item is of this type but name of the properties is getting from oppositeRelationProperty.

It is correct or not?

Thank's

Re: Selft tracking entity fixup problem

Posted: Tue 06 Aug 2013 16:33
by Shalex
1. Are you getting any error or incorrect behaviour with the generated code? If yes, please describe the problem itself.

2. If you create a similar model with EDM Wizard (the ADO.NET Entity Data Model item, *.edmx), most likely you will get the same code generation.