Metadata file prefix?
Metadata file prefix?
I am using multiple edml files in my project. This seems to cause the .csdl, .msl, and .ssdl files to prefix with Data during build. For instance, the entity container name Cameras is built as Data.Cameras.csdl, etc. This would be fine if the connection string in the generated code also included a reference to this file in the metadata. Instead, it is referencing Cameras.csdl, which makes object instantiation impossible, causing a hang. Other than creating my own connection string, are there any settings I can use to fix this?
Re: Metadata file prefix?
The names of the .csdl, .msl, and .ssdl files are based on the model name (e.g.: Data.Cameras.edml) and do not depend on the value of the Entity Container Name property of the model or availability of another models in the project.WillLA wrote:I am using multiple edml files in my project. This seems to cause the .csdl, .msl, and .ssdl files to prefix with Data during build. For instance, the entity container name Cameras is built as Data.Cameras.csdl, etc.
We cannot reproduce the described problem with the latest version (4.7.295) of Entity Developer. Do you generate the connection string in the *.Designer.cs or in app.config? In case of app.config, try removing the connection string to make Entity Developer to regenerate the connection string. Does it help? Anyway, if the problem persists, please send us a small test project to reproduce the issue in our environment.WillLA wrote:This would be fine if the connection string in the generated code also included a reference to this file in the metadata. Instead, it is referencing Cameras.csdl, which makes object instantiation impossible, causing a hang.