CoreStrings.InheritedPropertyCannotBeIgnored(Object, Object, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
不能在类型“{type}”上忽略属性“{property}”,因为它是在基类型“{baseType}”上声明的。 若要从模型中排除此属性,请在“OnModelCreating”中对基类型使用 [NotMapped] 属性或“Ignore”。
public static string InheritedPropertyCannotBeIgnored (object property, object entityType, object baseEntityType);
public static string InheritedPropertyCannotBeIgnored (object? property, object? entityType, object? baseEntityType);
public static string InheritedPropertyCannotBeIgnored (object? property, object? type, object? baseType);
static member InheritedPropertyCannotBeIgnored : obj * obj * obj -> string
static member InheritedPropertyCannotBeIgnored : obj * obj * obj -> string
Public Shared Function InheritedPropertyCannotBeIgnored (property As Object, entityType As Object, baseEntityType As Object) As String
Public Shared Function InheritedPropertyCannotBeIgnored (property As Object, type As Object, baseType As Object) As String
参数
- property
- Object
- entityTypetype
- Object
- baseEntityTypebaseType
- Object