c# - Connection String Trouble MetaDataException -


In my project, I will get two models when I added other models, I found this error in all the account pages:

  System.Data.MetadataException: The specified schema is not valid. Errors: (8.6): Error 0040: nclob type is not eligible with namespace or nickname Only the primitive type can be used without qualification lign 33: {lign 34: if (! Context.Database.Exists ()) lign 35: In line 34 of the 'Early Simili Ambership Entity CCT' using the {lign 36: // Make Simple Mailbish} Entity Framework Migration Schema   

Without Database and those My Connection String:

  & lt; connectionStrings & gt; & Lt; Add name = "DefaultConnection" connectionString = "user id = devart; password = 1234; data source = localhost: 1521" provider name = "devarart.data oracle" /> & Lt; Add name = "body" connection string = "metadata = ridge: //*/Models.ModelMAE.csdl | res: //*/Models.ModelMAE.ssdl | res: //*/Models.ModelMAE.msl; provider = Oracle.DataAccess.Client; Provider Connection String = & amp; quot; Data Source = Local Host: 1521; Password = 1234; USER ID = Test & amp; quot; "Provider Name =" System.Data.EntityClient "/> & Lt; / ConnectionStrings & gt;    

usercontext connection string 1:

  public class UsersContext: DbContext {public UsersContext (): base ("DefaultConnection ") {} Public DbSet & lt; UserProfile & gt; UserProfiles {Receive; Set; }}  connectionString 2:  
  public class EntitiesMAE: DbContext {public entitiesMAE (): base ("name = EntitiesMAE ") {} Public DbSet & lt; OFFRE & gt; OFFRE {Received; Set; } Public DBSet & lt; Region & gt; Area {get; Set; }}   

The problem is in the second second connection string entities when I delete it from everything please how to fix it?

It seems that it is related to this problem:

This article recommends two approaches 1. Disable the applications (I can not recommend it) 2. Use OracleEntityProviderConfig to configure the program. IgnoreSchemaName = true

They also mentioned using a specific DbContext template, which you can find from this article (I hate posting link, but in short there is a lot of information):

However, it was written for EF 4.1, and you do not say that you are using the version of EF ... so I'm not sure That if you can apply to any of these versions as well.

So the essence is that you can not just change the provider with other changes. You are going to make some other changes, and I recommend using code using the Devat DbContext template to generate the code. And see how it creates, then insert that app into your app.

In addition, the code is clearly incorrect. You are using connection strings that are not present (you say that the connection string is called entities, but your code is a connection string called antsaeme ), You can also say that your second reference is called user content, but your code is antitaimmace. I suggest clearing your code so that it is your real code, because otherwise we are trying to help you with code that is not valid.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -