Bug in DataContext?

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
elion
Posts: 29
Joined: Wed 10 Dec 2014 07:15

Bug in DataContext?

Post by elion » Wed 23 Mar 2016 10:42

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!

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Bug in DataContext?

Post by AlexP » Wed 23 Mar 2016 12:19

Hello,

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

Post Reply