Entity framework - create csdl, ssdl and msl files

I work with EF 4 (and not with self-monitoring objects at the moment). I added several columns (not one of them is the key, but all values ​​with a zero value) for one of my objects and received an exception Number of members in conceptual type does not match with number of members on object side type.
I followed the accepted answer here , but all I got is that this object no longer appears in my edmx. I re-added it from the database, but I still get the same exception.
I think the problem is that I copied the csdl / ssdl / msl files to my build executable. I would like to copy the updated files, but they were not created again (they were created in the folder of obj\Debug\edmxResourcesToEmbedmy EF project), even after they were deleted.
Any way to get these files created again?
Thank you

PS: Since I do not want to publish excess amounts of code, I do not add anything, but I will be glad to add the necessary information, I'm just not sure what exactly is needed.

+5
source share
1 answer

So, if you want to create csdl, ssdl amd msl files, follow these steps:

  • Go to the edmx file.
  • Click on the GuI screen that shows the model.
  • Switch to the properties window (I did not know that it should be accessible from the GUI area, and not by right-clicking in the solution explorer.
  • In Metadata Artifact Processselect Embed in Output Assembly.

, Debug\edmxResourcesToEmbed obj obj\x86, .
, , (msdn ), , .

+15

All Articles