This question is locked. New answers and comments are not allowed.
Hello,
I've got a problem with updating one of my entity, which has joint primary key (two columns with long datatype].
If I'll change just only one non-primary column value on entity and then saveā¦
At first I call context.SubmitAndLogChanges
Next steps are gained from call stack and .net reflector:
1. it goes through entity column setter in entity.generated.cs under rlinq
2. it will get into KeyStateManger.StateManager.SetField<long>(PersistenceCapable pc, int field, T currentValue, T newValue)
3. then it will get into KeyStateManager.StoreValue(int key, object v)
4. and finally KV SetValue(int key) is reached where it will run in neverending loop, maybe due to key value is not equal to values.slot.
My other entities will not reach this part of code during the save operation.
I suppose the entity, which causes the problem has OpenAccessEnhancedStateManager != null instead of my other entities. But I don't know why.
Telerik.OpenAccess.Ria.Extensions - version 2012.3.1012.1
Could you please help me with this issue?
Thank you
Robert
I've got a problem with updating one of my entity, which has joint primary key (two columns with long datatype].
If I'll change just only one non-primary column value on entity and then saveā¦
At first I call context.SubmitAndLogChanges
Next steps are gained from call stack and .net reflector:
1. it goes through entity column setter in entity.generated.cs under rlinq
2. it will get into KeyStateManger.StateManager.SetField<long>(PersistenceCapable pc, int field, T currentValue, T newValue)
3. then it will get into KeyStateManager.StoreValue(int key, object v)
4. and finally KV SetValue(int key) is reached where it will run in neverending loop, maybe due to key value is not equal to values.slot.
private
KV SetValue(
int
key)
{
KV values =
this
.values;
while
(values !=
null
)
{
if
(values.slot == key)
{
return
values;
}
}
values =
new
KV {
next =
this
.values,
slot = key
};
this
.values = values;
return
values;
}
My other entities will not reach this part of code during the save operation.
I suppose the entity, which causes the problem has OpenAccessEnhancedStateManager != null instead of my other entities. But I don't know why.
public
static
void
OpenAccessEnhancedSet_PRUCHOD_KON(IPOCWV owner,
long
value)
{
StateManager openAccessEnhancedStateManager = owner.OpenAccessEnhancedStateManager;
if
(openAccessEnhancedStateManager !=
null
)
{
openAccessEnhancedStateManager.SetField<
long
>(owner, 2 + OpenAccessEnhancedInheritedFieldCount, owner._PRUCHOD_KON, value);
}
else
{
owner._PRUCHOD_KON = value;
}
}
Telerik.OpenAccess.Ria.Extensions - version 2012.3.1012.1
Could you please help me with this issue?
Thank you
Robert