开发者

How to move an attribute inside an entity in Visual Studio data model designer?

When I design a data model in Visual Studio, I can only add/remove/rename entity attributes. Is it possible to rearrange the fi开发者_C百科elds already present (considering model-first process, meaning the database to be generated from the model after it is designed)?


The easiest way to do so is to edit your edmx as an xml file (right click>Open With>XML (Text) Editor), find the pertaining to your entity in the csdl section of the file, and move the tag of your property up and down as needed.

I don't know a method to get the same result through the designer only.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜