你应该避免使用属性吗?
第二个标签还包含了属性信息,定义了映射文件要被使用在的程序集名称,这样可以让我们避免在映射标签里写所有的类名。
The second tag also contains attributes that define the namespace and assembly names to be used with mapping references.
如果您无法修改数据库存储过程,那么您可以使用NotSupported属性来暂停已有事务上下文,以避免这种致命的异常。
If you cannot change the database stored procedure, you can use the NotSupported attribute to suspend the existing transaction context to avoid this fatal exception.
为了避免进入性冲突,那么外部性对象的更新属性应该在更新Jazz项目之前使用项目连接器客户端来进行同步化。
To avoid incoming conflicts, the updated properties of an external object should be synced by using the item Connector client before the Jazz item is updated.
为了避免外出性冲突,那么Jazz项目的更新属性应该在更新外部性对象之前使用外部存储库管理器来进行同步化。
To avoid outgoing conflicts, the updated properties of a Jazz item should be synced by using the External Repository Manager before the external object is updated.
注意,在配置属性文件中使用了Base64编码形式的用户名和密码,以避免此敏感信息意外暴露。
Notice that a base64 encoding of both the username and the password is used in the configuration properties file to avoid casual exposure of this sensitive information.
如果对象的属性较多,例如是一张大的遗留表,那你应该开启该特性,和“dynamic -update”结合使用以避免太多数据库更新开销。
If your object has many properties, as for a big legacy table, you may need to turn on this feature along with "dynamic-update" to avoid too much database update overhead.
使用改进的 2.0功能,避免使用 disable-output-escaping属性。
Use enhanced 2.0 capabilities, and eliminate the disable-output-escaping attribute.
同时要避免使用太多的默认属性,因为这会增加验证时间。
Also avoid using many default attributes, since this increases validation time.
自动属性—很多人为了避免声明用来公共存取的属性,减少输入量,而使用公共字段。
Automatic properties - Many people use public fields just to avoid typing out all that is needed to declare publicly accessible properties.
我的建议是避免在元素或属性名称上使用特殊字符。
My recommendation is to stay away from any special characters in the element or attribute names.
虽然应该避免名称隐藏(为本地变量赋予与属性相同的名称),但是始终使用读写方法来访问属性意味着:可以为本地变量赋予任何名称。
Although you should avoid name hiding (giving local variables the same names as attributes), the use of accessors to always access attributes means you can give local variables any name you want.
首先,新的设备特定属性的名字都应该使用制造商前缀,以避免和现有标准属性名相冲突。
First, new device-specific property names should use a manufacture prefix so that they don't conflict with existing standard property names.
请保持代码的简洁性。尽量使用简写属性,当没有必要的时候应当避免使用多个属性。
Keep your code terse. Use shorthand properties and avoid using multiple properties when it's not needed.
理财产品(计划)的名称应恰当反映产品属性,避免使用带有诱惑性、误导性和承诺性的称谓。
The name of a financial management product (plan) shall properly reflect the features of the product and have no tempting, misleading or promising words therein.
理财产品(计划)的名称应恰当反映产品属性,避免使用带有诱惑性、误导性和承诺性的称谓。
The name of a financial management product (plan) shall properly reflect the features of the product and have no tempting, misleading or promising words therein.
应用推荐