How to use new workaround for IgnoreSchemaName

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
quip85673456
Posts: 13
Joined: Mon 18 Apr 2011 16:37

How to use new workaround for IgnoreSchemaName

Post by quip85673456 » Thu 05 May 2011 15:40

I have the beta for 6.30.145, but I can't figure out how to use the new IgnoreSchemaName workaround.

Can you explain how to set that property, is it in code, or in the model, or something else?

Update: Nevermind, this appears to work:

Code: Select all

var config = Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig.Instance;
config.Workarounds.IgnoreSchemaName = true;

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

Post by Shalex » Fri 06 May 2011 06:34


syl74
Posts: 6
Joined: Tue 21 Oct 2008 13:59

Post by syl74 » Tue 10 May 2011 08:55

Hello,

I'm using dotConnect for Oracle 610.141 with the Entity Framework support (no Entity Developer).
Because my tables structures can be deployed on 2 differents schema, I have to remove the schema name in the EntitySet info in the SSDL. If the tag store:Schema= is not present, then my model works on both schemas.

The problem is when I update my model from the database. All tables are displayed as *new* and *todelete* because the designer cannot make the "join" between tables already declared in the model and tables present in the database (because of the store:Schema info missing in the SSDL)

Question : is the new "IgnoreShemaName" can help me in this situation ?
Is there a way to activate this workaround in the config file used by entity framework when updating a model from database ?

Thanks for your help.

syl74
Posts: 6
Joined: Tue 21 Oct 2008 13:59

Post by syl74 » Tue 10 May 2011 09:06

I've found the solution my self.
1- Do not remove the store:Schema info in the SSDL
2- Add the following code in my service constructor
var config = Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig.Instance; config.Workarounds.IgnoreSchemaName = true;
It works !

PS : good job also for the fix for "StoreGeneratedPattern".

Post Reply