MVC updating .edmx files (.msl, .csdl, .ssdl)

前端 未结 1 1511
我在风中等你
我在风中等你 2021-01-23 09:31

I have 3 .edmx files (.msl, .csdl, .ssdl) in my root project directory where the web.config is. Why are these not updating when I do a \'update model from database\'?

1条回答
  •  无人及你
    2021-01-23 10:03

    .msl, .csdl and .ssdl are result of .edmx compilation, if you do not embedd them into assembly check that "EntityDeploy" is selected for "Build Action" in .edmx file properties (in Solution Explorer) and "Copy to Output Directory" is selected for "Metadata Artifact Processing" in model properties (in model designer), update your model and rebuild solution. After that they will be copied to bin\Debug subfolder.

    BTW, you could select "Embedd into Output Assembly", update connection string, remove references to these files from solution and do not care about them anymore.

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