Page 1 of 1

Bug in DataContext?

Posted: Wed 23 Mar 2016 10:42
by elion
Hello,

I have the following code

Code: Select all

   MyMappedEntity := TSomeMappedEntity.Create;
   MyMappedEntity.UserName := 'Barack';
   MyMappedEntity.UserID := 123456;
Now I have the following situation. In the first case UserName and UserID are saved as expected. In the second case UserName is saved, but the UserID is zero.

Code: Select all

(1)  MyMappedEntity.Attach(FEntityContext);
(2)  FEntityContext.Attach(MyMappedEntity);
MyMappedEntity.Save;
Is it a bug, or am I doing something wrong?

Thx!

Re: Bug in DataContext?

Posted: Wed 23 Mar 2016 12:19
by AlexP
Hello,

The problem is not reproduced using the latest version. Please send your model and a sample to alexp*devart*com.