MutablePropertyExtensions 類別

定義

警告

Use IMutableProperty

IMutableProperty 的擴充方法。

public static class MutablePropertyExtensions
[System.Obsolete("Use IMutableProperty")]
public static class MutablePropertyExtensions
type MutablePropertyExtensions = class
[<System.Obsolete("Use IMutableProperty")>]
type MutablePropertyExtensions = class
Public Module MutablePropertyExtensions
繼承
MutablePropertyExtensions
屬性

方法

FindContainingPrimaryKey(IMutableProperty)
已淘汰.

取得使用此屬性的主鍵, (包含此屬性的複合主鍵) 。

FindFirstPrincipal(IMutableProperty)
已淘汰.

如果指定的屬性是外鍵的一部分,則尋找指定屬性受限制的第一個主體屬性。

FindPrincipals(IMutableProperty)
已淘汰.

如果指定的屬性是外鍵的一部分,則尋找主體屬性的清單,包括給定屬性所限制的指定屬性。

GetContainingForeignKeys(IMutableProperty)
已淘汰.

取得使用此屬性的所有外鍵, (包括包含此屬性的複合外鍵) 。

GetContainingIndexes(IMutableProperty)
已淘汰.

取得使用此屬性的所有索引, (包含此屬性的複合式索引) 。

GetContainingKeys(IMutableProperty)
已淘汰.

取得使用此屬性的所有主要或替代索引鍵, (包含此屬性的複合索引鍵) 。

GetContainingPrimaryKey(IMutableProperty)
已淘汰.

取得使用此屬性的主鍵, (包含此屬性的複合主鍵) 。

IsUnicode(IMutableProperty, Nullable<Boolean>)
已淘汰.

設定值,指出這個屬性是否可以保存 Unicode 字元。

SetAfterSaveBehavior(IMutableProperty, Nullable<PropertySaveBehavior>)
已淘汰.

取得或設定值,指出這個屬性是否可以在實體儲存至資料庫之後修改。

如果 Throw 為 ,則會在資料庫中存在實體之後,將新值指派給這個屬性時,擲回例外狀況。

如果 Ignore 為 ,則會忽略已存在於資料庫中之實體屬性值的任何修改。

SetBeforeSaveBehavior(IMutableProperty, Nullable<PropertySaveBehavior>)
已淘汰.

取得或設定值,指出是否可以在實體儲存至資料庫之前修改這個屬性。

如果 Throw 為 ,則在狀態中 Added 時,如果值指派給這個屬性,則會擲回例外狀況。

如果 Ignore 為 ,則會在處於 狀態時 Added 忽略任何設定的值。

SetIsUnicode(IMutableProperty, Nullable<Boolean>)
已淘汰.

設定值,指出這個屬性是否可以保存 Unicode 字元。

SetKeyValueComparer(IMutableProperty, ValueComparer)
已淘汰.

在執行索引鍵比較時,設定此屬性的自訂 ValueComparer

SetMaxLength(IMutableProperty, Nullable<Int32>)
已淘汰.

設定此屬性中允許的資料長度上限。 例如,如果屬性是 String ',則這是字元數上限。

SetPrecision(IMutableProperty, Nullable<Int32>)
已淘汰.

設定此屬性中允許的資料有效位數。 例如,如果 屬性是 Decimal ,則這是最大位數。

SetProviderClrType(IMutableProperty, Type)
已淘汰.

設定屬性值在傳送至資料庫提供者之前要轉換成的類型。

SetScale(IMutableProperty, Nullable<Int32>)
已淘汰.

設定此屬性中允許的資料小數位數。 例如,如果 屬性是 Decimal ,則這是小數位數的最大值。

SetStructuralValueComparer(IMutableProperty, ValueComparer)
已淘汰.

設定此屬性之結構化複本的自訂 ValueComparer

SetTypeMapping(IMutableProperty, CoreTypeMapping)
已淘汰.

CoreTypeMapping設定指定屬性的

SetValueComparer(IMutableProperty, ValueComparer)
已淘汰.

設定這個屬性的自訂 ValueComparer

SetValueConverter(IMutableProperty, ValueConverter)
已淘汰.

設定這個屬性的自訂 ValueConverter

SetValueGeneratorFactory(IMutableProperty, Func<IProperty,IEntityType,ValueGenerator>)
已淘汰.

將處理站設定為用於產生此屬性的值,或 null 清除任何先前設定的 Factory。

設定 null 不會停用這個屬性的值產生,它只會清除針對此屬性明確設定的任何產生器。 資料庫提供者可能仍有屬性類型的值產生器。

適用於