列的标题持续存在 [英] captions for columns that persist

查看:70
本文介绍了列的标题持续存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在创建模型后,任何人都可以指向链接(或解释)保持您在设计器中所做实体更改的最佳方式。 例如,我的列名是订单,我希望我的数据层中的标题是"订单号"。 
我不想将标题改回"订单号"。每次我需要刷新数据模型时从订购,因为我需要一个新的列或表(或其他)。  这是否意味着我需要使用POCO? 或者有没有办法只刷新
a单表/实体?

解决方案

抱歉 - 我不确定我理解 - 你能用"标题"来解释你的意思吗?你在哪里设置它?


从数据库中刷新模型不应该导致你丢失你对模型所做的任何自定义,这是该功能设计的原则之一


Can anyone point to a link (or explain) the best way to keep changes to your entities that you have made in the designer after you have created the model.  For example, my column name is order and I want the caption in my datalayer to be "Order Number".  I don't want to have to change the caption back to "Order Number" from order every time I need to refresh the datamodel because I need a new column or table (or whatever).   Does this mean I need to use POCO?  Or is there a way to just refresh a single table/entity?

解决方案

Sorry - I'm not sure I understand - can you explain what you mean by "caption"? Where are you setting it?

Refreshing the model from the database should not cause you to lose any customizations you have made to the model, that was one of the principles of the design of the feature.


这篇关于列的标题持续存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆