Bug in DataContext?

Bug in DataContext?

Postby elion » Wed 23 Mar 2016 10:42


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);

Is it a bug, or am I doing something wrong?

Posts: 29
Joined: Wed 10 Dec 2014 07:15

Re: Bug in DataContext?

Postby AlexP » Wed 23 Mar 2016 12:19


The problem is not reproduced using the latest version. Please send your model and a sample to alexp*devart*com.
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Return to EntityDAC