語言

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

定義

服務屬性 '{property}' 的 '{serviceType}' 無法加入實體類型 '{entityType}'' 中,因為還有另一個同類型的屬性。 請使用 [NotMapped] 屬性或在 “OnModelCreating” 中使用 'EntityTypeBuilder.Ignore' 忽略其中一個屬性。

public static string AmbiguousServiceProperty(object property, object serviceType, object entityType);
static member AmbiguousServiceProperty : obj * obj * obj -> string
Public Shared Function AmbiguousServiceProperty (property As Object, serviceType As Object, entityType As Object) As String

參數

property
Object
serviceType
Object
entityType
Object

傳回

適用於