Prevent update on ExcludeIncludeFieldsList fields

Posts   
 
    
Posts: 7
Joined: 26-Jul-2007
# Posted on: 01-Jul-2009 14:22:17   

(Adapter with LLBLGen 2.5 on SQL Server 2005)

I fetch an entity and exclude some fields using the ExcludeIncludeFieldsList class. When I save this entity, the excluded fields seem to be flagged as dirty and they are included in the UPDATE.

See following sample code:

            TitleEntity t = new TitleEntity(1);

            exclude.Add(TitleFields.Changed);

            adapter.FetchEntity(t, null, null, exclude);
            t.Name = "Mr ..";

            adapter.SaveEntity(t); // both Name, Changed fields are included in UPDATE 

How do I prevent 'excluded' fields from the fetch being part of any subsequent SAVE on the same entity instance?

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 01-Jul-2009 14:33:52   

Please specify the exact LLBLGen pro runtime library version used.

Posts: 7
Joined: 26-Jul-2007
# Posted on: 01-Jul-2009 14:35:54   

Walaa wrote:

Please specify the exact LLBLGen pro runtime library version used.

SD.LLBLGen.Pro.DQE.SqlServer.NET20.dll v 2.5.7.906

SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll v2.5.7.1005

Posts: 7
Joined: 26-Jul-2007
# Posted on: 01-Jul-2009 14:51:06   

Walaa wrote:

Please specify the exact LLBLGen pro runtime library version used.

Walaa, sorry.

Was an issue further in the architecture this side.

No longer a problem.