共用方式為


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

傳回

適用於