Page 1 of 1

Can't see UseDatabaseNullSemantics = true

Posted: Fri 03 Jul 2015 16:59
by patrickwensel
In reference to this article:

http://forums.devart.com/viewtopic.php?f=38&t=28788

I am facing the same issue.

I am using EF 6.1.3

I have tried everything and can't get it to work:

Code: Select all

                using (SalesForceContext salesForceContext = new SalesForceContext())
                {
                    //salesForceContext.Configuration.UseDatabaseNullSemantics = true;
it won't recognize "Configuration"

When in instantiate another EF Model I can see Configuration.UseDatabaseNullSemantics

Not sure if this is relevant, but I am using an EDML

Image

Image

Image

Re: Can't see UseDatabaseNullSemantics = true

Posted: Mon 06 Jul 2015 13:26
by Shalex
Are you using the DbContext template in your SalesForceModel.edml? You can check this in the following way: open the model, navigate to Model Explorer > the Templates node.

For more information, refer to

Re: Can't see UseDatabaseNullSemantics = true

Posted: Mon 06 Jul 2015 20:56
by patrickwensel
I am using an Entity Context, is there a solution for an entity context so I do not have to convert to a DBContext? Should I convert (new to this)

Re: Can't see UseDatabaseNullSemantics = true

Posted: Tue 07 Jul 2015 13:09
by Shalex
1. The corresponding property in ObjectContext is UseCSharpNullComparisonBehavior.

2. If you want to convert your model to use DbContext, disable the EntityContext template, enable the DbContext template, save the model to regenerate the code.