共用方式為


CoreStrings.DerivedEntityOwnershipMismatch 方法

定義

無法將 '{baseEntityType}' 設定為實體類型 '{derivedEntityType}' 的基底類型,因為 '{ownedEntityType}' 已設定為擁有,而 '{nonOwnedEntityType}' 是非擁有的。 階層中的所有實體類型都必須具有相同的擁有權狀態。 如需詳細資訊和範例,請參閱 https://aka.ms/efcore-docs-owned

public static string DerivedEntityOwnershipMismatch (object? baseEntityType, object? derivedEntityType, object? ownedEntityType, object? nonOwnedEntityType);
static member DerivedEntityOwnershipMismatch : obj * obj * obj * obj -> string
Public Shared Function DerivedEntityOwnershipMismatch (baseEntityType As Object, derivedEntityType As Object, ownedEntityType As Object, nonOwnedEntityType As Object) As String

參數

baseEntityType
Object
derivedEntityType
Object
ownedEntityType
Object
nonOwnedEntityType
Object

傳回

適用於