This question is locked. New answers and comments are not allowed.
For example, I have an object Store with a property Address.
If i haven't used that property before i've changed it then in ChagedEventArgs OldValue will be null.
Also it is very strange that OpenAccess loads Store address property from database once again if i will use it it my code after i have load all Store entities (SELECT [Id], [Address] FROM [Stores]) just before:
declare @p1 int
set @p1=1
exec sp_prepexec @p1 output,N'@p0 bigint',N'SELECT [Address] FROM [Stores] WHERE [Id] = @p0 ',@p0=3
select @p1
If i haven't used that property before i've changed it then in ChagedEventArgs OldValue will be null.
Also it is very strange that OpenAccess loads Store address property from database once again if i will use it it my code after i have load all Store entities (SELECT [Id], [Address] FROM [Stores]) just before:
declare @p1 int
set @p1=1
exec sp_prepexec @p1 output,N'@p0 bigint',N'SELECT [Address] FROM [Stores] WHERE [Id] = @p0 ',@p0=3
select @p1