CoreStrings.InheritedPropertyCannotBeIgnored(Object, Object, Object) 方法

定义

不能在类型“{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

返回

适用于