Entity framework - create the csdl, ssdl and msl files

后端 未结 1 1918
抹茶落季
抹茶落季 2021-01-18 10:09

I work with EF 4 (not with Self-tracking entities currently). I\'ve added some columns (non of them is a key and all of the are nullable) to one of my entities, and got the

相关标签:
1条回答
  • 2021-01-18 10:51

    So if you want to create the csdl, ssdl amd msl files, do the following:

    1. Go to your edmx file.
    2. Click on the GuI screen that shows the model.
    3. Switch to the property window (I didn't know that it needs to be accessed from the GUI area and not by right clicking the file in the Solution Explorer.
    4. In the Metadata Artifact Process select Embed in Output Assembly.

    Done and done, the files will appear in Debug\edmxResourcesToEmbed under obj or obj\x86, depends on your build definitions.
    I'm sorry if this seems to simple to explain, but I was in need for those instructions (msdn was not a great help) and I hope it might help others.

    0 讨论(0)
提交回复
热议问题