c# - Effort Framework does not recognize Entity Model schema -


I have an entity model of a Sybase ASE database and I am trying to use it to create a unit test I am I am able to use databases with unit models in both my main project and unit test project, however, I get an exception when I try to use an attempt to create a memory database.

Test project in problem code unit

  Public Setting () {string connString = System.Configuration.ConfigurationManager.ConnectionStrings ["CoPathDataContext"]. ConnectionString; MyDbContext reference; / / CreateTransient Exception EntityConnection conn = Attempt. AntityConnectionFactory.CreateTransient (connString); Context = new data KopadDettext (Conn); }   

Exception Description: (System.Data.MetadataException)

  The specified schema is not valid. Errors: (0,0): Error 0063: Precision Fests are not allowed for double properties (0,0): Error 0063: Precision Fact is not allowed for double properties (0,0): Error 0063: Precision Fact is not allowed for properties of Type Double (0,0): Error 0063: Precision Fact is not allowed for double properties (0,0): Error 0063: Properties of Type Double Precision Fact is not allowed (0,0): Error 0063: Precision Fact is not allowed for Type Double (0,0): Error 0063: Precision Fact is not allowed for double properties (0,0): Error 0063: Precision Fact for Properties of Type Double Not allowed (0,0): Error 0063: Precision Fact is not allowed for double properties (0,0): Error 0063: Precision Fact is not allowed for double properties (0,0) ): Error 0063: Type Double properties Precision Fact is not allowed for   

stack trace

  on the system. Metadata.adm.store.imolution.lodder.prov onon warning errors () system.datata.metadata.aamd.storeimmolution on Loader.load items on System.Data.Metadata at System.Data.Metadata.Edm.StoreItemCollection.Loader..ctor (IEnumerable`1xmlReaders, IEnumerable`1 SourceFilePath, Boolean ThrowerArror). IE Items (IEnumerable 1xmlReaders, IEnumerable 1 source source pile) . Edm.StoreItemCollection.Init (IEnumerable`1xmlReaders, IEnumerable`1 filePaths, Boolean ThrowerArror, DBProviderManfest and ProviderManfest, DBProviderFeature and ProviderFactaler, String and Provider Manifest Token, Memoir '2 and Cached TaxPay Function) System.Data.Matadata.Amd.Storetime Collection Try it on .. (IEnumerable 1 xmlReaders) on the quad. In Internal.Common.MetadataWorkspaceHelper.CreateMetadataWorkspace (list `1 CSLD, list '1 ssdl, list 1 msl) in the effort. Internal. Mango. MetadataWorkspaceHelper.Rewrite (String Metadata, String Provider Invariant Name, String ProviderMonitor Tokens) Ort.EntityConnectionFactory on F. & Lt; GetEffortCompatibleMetadataWorkspace & gt; In b__1 (string metadata) attempts Internal.Caching. Metadata Workspace Store & Lt; & Gt; c__DisplayClass1 & Lt; GetMetadataWorkspace & gt; b__0 () on system Try System.Lazy` at Lazy`1.CreateValue (). 1.LazyInitValue () on System.Lazy 1.get_Value (). Inherent Caching Capture Catcher '2.Get (TKey Key, Func1 factory) in the endeavor. On Internal.Caching.MetadataWorkspaceStore.GetMetadataWorkspace (String Metadata, Fenk 2 WorkspaceTameth) attempt. Anticonnecting Fibrator.getAufortContain DataData Workspace (string & amp; attempted) Anti-Connection Connector. On Creativention (String Entity Connection String, IDTO Loader Data Loader) Attempts Anti Connection Connector Credentialsant (String Entity Continuation String)   

.cddl and. After looking at the SDLL files, I believe that the fields have created a problem.

SSDL

  & lt; Property name = "sequence_name" type = "float" precision = "24" faucet = "wrong" />   

CSDL

  & lt; Property name = "sequence_name" type = "double" zero = "wrong" />   

I tried to remove Precision Attributes from the SSDL areas, but I still get the same error (even if it works, then the model may change if it is reborn Will not be there)

There is an idea about how this is causing an exception and how should I resolve it?

If you have not done so, then the Microsoft server renews for 5.6+. It updates all your dates, date times, times. With option in 0-6 ()

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -