ConventionPropertyBaseExtensions 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Use IConventionPropertyBase
的 IConventionPropertyBase扩展方法 。
public static class ConventionPropertyBaseExtensions
[System.Obsolete("Use IConventionPropertyBase")]
public static class ConventionPropertyBaseExtensions
type ConventionPropertyBaseExtensions = class
[<System.Obsolete("Use IConventionPropertyBase")>]
type ConventionPropertyBaseExtensions = class
Public Module ConventionPropertyBaseExtensions
Public Class ConventionPropertyBaseExtensions
- 继承
-
ConventionPropertyBaseExtensions
- 特性
方法
| 名称 | 说明 |
|---|---|
| GetPropertyAccessModeConfigurationSource(IConventionPropertyBase) |
已过时.
返回用于 . 的配置 GetPropertyAccessMode()源。 |
| SetField(IConventionPropertyBase, String, Boolean) |
已过时.
设置此属性应使用的基础 CLR 字段。
这可能 支持字段通常按约定找到,如下所述: http://go.microsoft.com/fwlink/?LinkId=723277. 在约定找不到正确的字段的情况下,此方法可用于显式设置支持字段。 默认情况下,如果找到或指定了后盾字段,则当构造新对象时使用,通常是从数据库查询实体时。 属性用于所有其他访问。 可以通过调用 SetPropertyAccessMode(IConventionPropertyBase, Nullable<PropertyAccessMode>, Boolean)来更改此更改。 |
| SetPropertyAccessMode(IConventionPropertyBase, Nullable<PropertyAccessMode>, Boolean) |
已过时.
PropertyAccessMode设置要用于此属性的项。 |