问题
In my C# Project I use Database First development using Entity Framework. The model is stored in an EDMX file (.edmx extension) in my project. This process automatically created a connection string as follows in my App.config:
<add name="TableEntities" connectionString="metadata=res://*/DBModel.csdl|res://*/DBModel.ssdl|res://*/DBModel.msl ...
This project has been thoroughly tested on 'Visual Studios 2015 - Windows' and works flawlessly. Pulling the same repo in the 'Visual Studios for Mac' workspace throws a System.Data.Entity.Core.MetadataException with the following information:
Message: Unable to load the specified metadata resource.
Source: EntityFramework
TargetSite (Type - System.Reflection.MonoMethod):
{System.Collections.Generic.List1 [System.Data.Entity.Core.Metadata.Edm.MetadataArtifactLoaderResource] LoadResources(System.String, System.String, System.Collections.Generic.ICollection`1[System.String], System.Data.Entity.Core.Metadata.Edm.MetadataArtifactAssemblyResolver)}
Do I need to alter my project in any way for this to work?
Has anyone managed to use Entity Framework with Visual Studios for Mac?
来源:https://stackoverflow.com/questions/43500520/visual-studios-for-mac-unable-to-load-the-specified-metadata-resource