开发者

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

开发者 https://www.devze.com 2023-03-08 01:40 出处:网络
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, meanin

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

精彩评论

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