CoreStrings.AmbiguousServiceProperty(Object, Object, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
服務屬性 '{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