码迷,mamicode.com
首页 > 其他好文 > 详细

EdmScalarPropertyAttribute的EntityKeyProperty属性及IsNullable 属性

时间:2020-05-28 12:51:37      阅读:63      评论:0      收藏:0      [点我收藏+]

标签:tac   sse   ocs   之一   path   sys   att   prope   lin   

EdmScalarPropertyAttribute.EntityKeyProperty 属性

定义

取得或设定表示此属性是否为实体索引鍵之一部分的值。

C#
public bool EntityKeyProperty { get; set; }

属性值

表示此属性是否为实体索引鍵之一部分的值。

备注

由於實體索引鍵可以包含多個屬性,所以 EntityKeyProperty 可以對多個实体类型的屬性設定成 true。

和屬性EntityKeyProperty不能同時為true , 因為索引鍵成員不能是。 null IsNullable

通用于

.NET Framework

4.8 4.7.2 4.7.1 4.7 4.6.2 4.6.1 4.6 4.5.2 4.5.1 4.5 4.0 3.5
 
=====================================================================================================================
 

EdmScalarPropertyAttribute.IsNullable 属性

定义

取得或设定值,這個值表示此属性是否可以具有 null 值。

C#
public bool IsNullable { get; set; }

属性值

值,這個值表示此屬性是否可以具有 null 值。

备注

和屬性不能同時為trueIsNullable EntityKeyProperty

通用于

.NET Framework

4.8 4.7.2 4.7.1 4.7 4.6.2 4.6.1 4.6 4.5.2 4.5.1 4.5 4.0 3.5

EdmScalarPropertyAttribute的EntityKeyProperty属性及IsNullable 属性

标签:tac   sse   ocs   之一   path   sys   att   prope   lin   

原文地址:https://www.cnblogs.com/zbliao/p/12979725.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!