Can't see UseDatabaseNullSemantics = true

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Cloud Applications
Post Reply
patrickwensel
Posts: 2
Joined: Fri 03 Jul 2015 14:42

Can't see UseDatabaseNullSemantics = true

Post by patrickwensel » Fri 03 Jul 2015 16:59

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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Can't see UseDatabaseNullSemantics = true

Post by Shalex » Mon 06 Jul 2015 13:26

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

patrickwensel
Posts: 2
Joined: Fri 03 Jul 2015 14:42

Re: Can't see UseDatabaseNullSemantics = true

Post by patrickwensel » Mon 06 Jul 2015 20:56

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)

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Can't see UseDatabaseNullSemantics = true

Post by Shalex » Tue 07 Jul 2015 13:09

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.

Post Reply