MutableTypeBaseExtensions.SetPropertyAccessMode 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
PropertyAccessMode设置要用于此实体类型的属性和导航的 。
请注意,单个属性和导航可以替代此访问模式。 此处设置的值将用于未指定替代的任何属性或导航。
public static void SetPropertyAccessMode (this Microsoft.EntityFrameworkCore.Metadata.IMutableTypeBase entityType, Microsoft.EntityFrameworkCore.PropertyAccessMode? propertyAccessMode);
static member SetPropertyAccessMode : Microsoft.EntityFrameworkCore.Metadata.IMutableTypeBase * Nullable<Microsoft.EntityFrameworkCore.PropertyAccessMode> -> unit
<Extension()>
Public Sub SetPropertyAccessMode (entityType As IMutableTypeBase, propertyAccessMode As Nullable(Of PropertyAccessMode))
参数
- entityType
- IMutableTypeBase
要为其设置访问模式的类型。
- propertyAccessMode
- Nullable<PropertyAccessMode>
或 PropertyAccessModenull
,以清除模式集。