I have two folders in a project Connections & Entities, I wan't to build an EntityConnection object in a class in the Connections folder that sets up connections for Entity Models in the Entities folder but I am having a problem with the MetaData property:
When I run the code with the above setup and entityBuilder.Metadata = @"res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl"; I get an "Unable to load the specified metadata resource.", If I move the Entity Models out of the Entities folder into the root of the project it works correctly.
If I move the Entity Models back to the Entities folder and change the MetaData string to @"res://*/Entities/Model1.csdl|res://*/Entities/Model1.ssdl|res://*/Entities/Model1.msl"; I get the following error :
"The specified metadata path is not valid. A valid path must be either an existing directory, an existing file with extension '.csdl', '.ssdl', or '.msl', or a URI that identifies an embedded resource."
Any ideas on how I can set this up correctly?
Thanks in advance
Rob