語言

IMutableProperty 介面

定義

代表結構類型的純量性質。

public interface IMutableProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IProperty
public interface IMutableProperty : Microsoft.EntityFrameworkCore.Metadata.IMutablePropertyBase, Microsoft.EntityFrameworkCore.Metadata.IProperty
public interface IMutableProperty : Microsoft.EntityFrameworkCore.Metadata.IMutablePropertyBase, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
type IMutableProperty = interface
    interface IProperty
    interface IPropertyBase
    interface IAnnotatable
    interface IMutableAnnotatable
type IMutableProperty = interface
    interface IProperty
    interface IPropertyBase
    interface IAnnotatable
    interface IMutablePropertyBase
    interface IMutableAnnotatable
type IMutableProperty = interface
    interface IReadOnlyProperty
    interface IReadOnlyPropertyBase
    interface IReadOnlyAnnotatable
    interface IMutablePropertyBase
    interface IMutableAnnotatable
Public Interface IMutableProperty
Implements IMutableAnnotatable, IProperty
Public Interface IMutableProperty
Implements IMutablePropertyBase, IProperty
Public Interface IMutableProperty
Implements IMutablePropertyBase, IReadOnlyProperty
實作

備註

此介面用於模型建立時,允許修改元資料。 模型建構完成後,代表 IProperty 同一元資料的唯讀視圖。

更多資訊與範例請參閱 建模實體類型與關係 。

屬性

名稱 Description
AfterSaveBehavior

會取得一個值,表示該屬性在實體儲存到資料庫後是否能被修改。

若 Throw,則在該實體存在於資料庫後,若該屬性被賦予新值,則會拋出例外。

若 Ignore,則資料庫中已存在的實體屬性值任何修改將被忽略。

BeforeSaveBehavior

會取得一個值,指示該屬性是否能在實體儲存到資料庫前被修改。

若 Throw,則當該屬性在狀態中 Added 被賦值時,將拋出異常。

若 Ignore,則任何值集合在狀態 Added 下都會被忽略。

ClrType

取得這個類屬性物件所持有的值類型。

(繼承來源 IReadOnlyPropertyBase)
DeclaringEntityType
已淘汰.

取得該屬性所屬的實體類型。

DeclaringType

取得這個類性質物件所屬的類型。

(繼承來源 IReadOnlyPropertyBase)
FieldInfo

取得這個類屬性物件底層 CLR 欄位的 。FieldInfo 這可能是 null 為了陰影性質,或是當背景場未知時。

(繼承來源 IReadOnlyPropertyBase)
IsAutoLoaded

取得或設定一個值,指示當從資料庫查詢實體時,該屬性是否會自動載入。 當設定為 false時,屬性值不會從資料庫讀取,且該屬性會被排除在 UPDATE 語句中,除非明確載入或修改。

IsCollection

會得到一個值,表示該屬性是否為集合。

(繼承來源 IReadOnlyPropertyBase)
IsConcurrencyToken

取得或設定一個值,表示此屬性是否用作並行標記。 當屬性被設定為並行標記時,當該實體類型的實例在更新或刪除時 SaveChanges() ,會檢查資料庫中的值,以確保自從從資料庫檢索後該值沒有改變。 若變更,將拋出例外,且該變更不會套用到資料庫。

IsNullable

取得或設定一個值,表示此性質是否能包含 null。

IsPrimitiveCollection

若一個屬性的元素類型與 CLR 類型中的元素類型相符,則該屬性稱為原始集合。

(繼承來源 IReadOnlyProperty)
IsReadOnlyAfterSave
已淘汰.

這個屬性已過時。 請改用 BeforeSaveBehavior。

IsReadOnlyBeforeSave
已淘汰.

這個屬性已過時。 請改用 BeforeSaveBehavior。

IsStoreGeneratedAlways
已淘汰.

這個屬性已過時。 請改用 BeforeSaveBehavior 或 AfterSaveBehavior。

Item[String]

取得帶有名稱的註解值,若不存在則回 null 傳。

(繼承來源 IReadOnlyAnnotatable)
Name

取得這個類性質物件的名稱。

(繼承來源 IReadOnlyPropertyBase)
PropertyInfo

取得該類性質物件底層 CLR 屬性的 。PropertyInfo 這可能是 null 用於陰影屬性,或是直接映射到欄位。

(繼承來源 IReadOnlyPropertyBase)
RequiresValueGenerator

會獲得或設定一個值,表示當新增實體加入上下文時,是否需要 a ValueGenerator 產生這個屬性的值。

Sentinel

取得或設定哨兵值,表示該屬性未被設定。

ValueGenerated

取得或設定一個值,指示資料庫何時會產生該屬性的值。 即使該屬性設定由資料庫產生,EF 仍可能嘗試儲存特定值(而非由資料庫產生),當實體被加入並指派值,或該屬性被標記為已修改為現有實體時。 請參閱 GetBeforeSaveBehavior() 及 GetAfterSaveBehavior() 更多資訊與範例。

方法

名稱 Description
AddAnnotation(String, Object)

為此物件新增註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 IMutableAnnotatable)
AddAnnotations(IEnumerable<IAnnotation>)

為物件添加註解。

(繼承來源 IMutableAnnotatable)
AddRuntimeAnnotation(String, Object)

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

取得物件上所有宣告註解的除錯字串。

(繼承來源 IReadOnlyAnnotatable)
CreateKeyEqualityComparer<TProperty>()

建立 IEqualityComparer<T> 給定屬性類型的 for 值。

(繼承來源 IProperty)
FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

(繼承來源 IReadOnlyAnnotatable)
FindContainingPrimaryKey()

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

FindFirstPrincipal()

若該屬性是外鍵的一部分,則找到該屬性所受約束的第一個主要性質。

FindRuntimeAnnotation(String)

取得帶有名稱的執行時註解,若不存在則回 null 傳。

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

取得執行時註解的值,若名稱不存在則回 null 傳。

(繼承來源 IAnnotatable)
FindTypeMapping()

回傳此屬性的型別映射。

(繼承來源 IReadOnlyProperty)
GetAfterSaveBehavior()

會取得一個值,表示該屬性在實體儲存到資料庫後是否能被修改。

(繼承來源 IReadOnlyProperty)
GetAnnotation(String)

取得帶有名稱的註解,若不存在則拋出。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前物件的所有註解。

(繼承來源 IReadOnlyAnnotatable)
GetBeforeSaveBehavior()

會取得一個值,表示該屬性是否可以在實體儲存到資料庫前被修改。

(繼承來源 IReadOnlyProperty)
GetCollectionAccessor()

如果是集合導覽或複雜屬性,會取得 IClrCollectionAccessor 該屬性。

(繼承來源 IPropertyBase)
GetContainingForeignKeys()

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

GetContainingIndexes()

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

GetContainingKeys()

取得所有使用此屬性的主鍵或備用鍵(包括包含此屬性的複合鍵)。

GetCurrentValueComparer()

比較追蹤條目中的數值IUpdateEntry會得到 aIComparer<T>。

(繼承來源 IPropertyBase)
GetElementType()

得到由此性質所代表的原始集合元素的配置。

GetFieldName()

取得該性質的背地名稱,或 null 若底盤不已知則得出。

(繼承來源 IReadOnlyPropertyBase)
GetGetter()

讀取該房產價值而獲得 A IClrPropertyGetter 。

(繼承來源 IPropertyBase)
GetIndex()

取得該物業的物業索引。

(繼承來源 IPropertyBase)
GetJsonValueReaderWriter()

如果沒有設定,則會得到 。JsonValueReaderWriternull

(繼承來源 IReadOnlyProperty)
GetKeyValueComparer()

用鍵值來 ValueComparer 使用這個屬性,或者 null 如果沒有設定任何鍵。

(繼承來源 IReadOnlyProperty)
GetMaxLength()

取得此屬性允許的最大資料長度。 例如,若性質為 a String ,則這是最大字元數。

(繼承來源 IReadOnlyProperty)
GetMemberInfo(Boolean, Boolean)

取得PropertyInfoFieldInfo或,應該用來取得或設定給定屬性的值。

(繼承來源 IPropertyBase)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

取得帶有名稱的執行時註解值,若不存在則加入該註解。

(繼承來源 IAnnotatable)
GetPrecision()

取得此性質允許的資料精確度。 例如,若性質為 a Decimal ,則為最大數字數。

(繼承來源 IReadOnlyProperty)
GetPrincipals()

尋找包含該屬性的清單,若該屬性屬於外鍵,則該屬性受限制。

GetPrincipals<T>()

尋找包含該屬性的清單,若該屬性屬於外鍵,則該屬性受限制。

(繼承來源 IReadOnlyProperty)
GetPropertyAccessMode()

被 PropertyAccessMode 用來做這個類似性質的物件。

(繼承來源 IReadOnlyPropertyBase)
GetProviderClrType()

取得屬性值在送給資料庫提供者前會轉換成的類型。

(繼承來源 IReadOnlyProperty)
GetProviderValueComparer()

取得 ValueComparer 來取得此屬性的提供者值。

(繼承來源 IReadOnlyProperty)
GetRuntimeAnnotations()

取得目前物件上的所有執行時註解。

(繼承來源 IAnnotatable)
GetScale()

取得此屬性允許的資料規模。 例如,若性質為 a Decimal ,則此為最大小數位數。

(繼承來源 IReadOnlyProperty)
GetTypeMapping()

從最終模型回傳給定屬性的 。CoreTypeMapping

(繼承來源 IReadOnlyProperty)
GetValueComparer()

如果沒有設定,則會得到 。ValueComparernull

(繼承來源 IReadOnlyProperty)
GetValueConverter()

取得這個屬性的自訂 ValueConverter 設定。

(繼承來源 IReadOnlyProperty)
GetValueGeneratorFactory()

取得已設定為此屬性產生數值的工廠(如果有的話)。

(繼承來源 IReadOnlyProperty)
IsForeignKey()

會獲得一個值,表示該屬性是否被用作外鍵(或複合外鍵的一部分)。

(繼承來源 IReadOnlyProperty)
IsIndex()

會得到一個值,表示該屬性是否被用作指數(或是綜合指數的一部分)。

(繼承來源 IReadOnlyProperty)
IsIndexerProperty()

會得到一個值,表示這是否屬於索引器屬性。 索引器屬性是指透過實體類別上的索引器存取的屬性。

(繼承來源 IReadOnlyPropertyBase)
IsKey()

會獲得一個值,表示該屬性是否被用作主鍵或備用鍵(或是複合主鍵或備用鍵的一部分)。

(繼承來源 IReadOnlyProperty)
IsPrimaryKey()

會獲得一個值,表示此屬性是否被用作主鍵(或複合主鍵的一部分)。

(繼承來源 IReadOnlyProperty)
IsShadowProperty()

會得到一個值,表示這是否是影子屬性。 影子屬性是指在實體類別中沒有對應屬性的屬性。 屬性的當前值會儲存在實體 ChangeTracker 類別的實例中,而非儲存在實體類別的實例中。

(繼承來源 IReadOnlyPropertyBase)
IsUnicode()

會得到一個值,表示該屬性是否能持久化 Unicode 字元。

(繼承來源 IReadOnlyProperty)
IsUniqueIndex()

會獲得一個值,表示此屬性是否被用作唯一指數(或是唯一綜合指數的一部分)。

(繼承來源 IReadOnlyProperty)
RemoveAnnotation(String)

移除該物件中給定的註解。

(繼承來源 IMutableAnnotatable)
RemoveRuntimeAnnotation(String)

移除該物件中給定的執行時註解。

(繼承來源 IAnnotatable)
SetAfterSaveBehavior(Nullable<PropertySaveBehavior>)

取得或設定一個值,指示該屬性在實體儲存到資料庫後是否能被修改。

SetAnnotation(String, Object)

設定在指定鍵下儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

(繼承來源 IMutableAnnotatable)
SetBeforeSaveBehavior(Nullable<PropertySaveBehavior>)

取得或設定一個值,指示該屬性是否能在實體儲存到資料庫前被修改。

SetElementType(Type)
已淘汰.

設定由此性質所代表的原始集合元素的配置。

SetField(String)

設定該屬性應使用的底層 CLR 欄位。

(繼承來源 IMutablePropertyBase)
SetIsUnicode(Nullable<Boolean>)

設定一個值,表示此屬性是否能持久化 Unicode 字元。

SetJsonValueReaderWriterType(Type)

設定 該 JsonValueReaderWriter<TValue> 屬性的類型。

SetMaxLength(Nullable<Int32>)

設定此屬性允許的最大資料長度。 例如,若性質為 a String ,則這是最大字元數。

SetOrRemoveAnnotation(String, Object)

設定以名字儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。 若 null 提供 則移除現有註解。

(繼承來源 IMutableAnnotatable)
SetPrecision(Nullable<Int32>)

設定此性質允許的資料精度。 例如,若性質為 a Decimal ,則為最大數字數。

SetPropertyAccessMode(Nullable<PropertyAccessMode>)

設定 使用 這個 PropertyAccessMode 屬性。

(繼承來源 IMutablePropertyBase)
SetProviderClrType(Type)

設定屬性值在送給資料庫提供者前會轉換成的型別。

SetProviderValueComparer(Type)

設定這個屬性的提供者值的自訂 ValueComparer 值。

SetProviderValueComparer(ValueComparer)

設定這個屬性的提供者值的自訂 ValueComparer 值。

SetRuntimeAnnotation(String, Object)

設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

(繼承來源 IAnnotatable)
SetScale(Nullable<Int32>)

設定此屬性允許的資料尺度。 例如,若性質為 a Decimal ,則此為最大小數位數。

SetTypeMapping(CoreTypeMapping)

為給定性質設定 。CoreTypeMapping

SetValueComparer(Type)

為這個物業設定了慣例 ValueComparer 。

SetValueComparer(ValueComparer)

為這個物業設定了慣例 ValueComparer 。

SetValueConverter(Type)

為這個物業設定了慣例 ValueConverter 。

SetValueConverter(ValueConverter)

為這個物業設定了慣例 ValueConverter 。

SetValueGeneratorFactory(Func<IProperty,IEntityType,ValueGenerator>)

設定工廠用於產生此屬性的數值,或 null 清除先前設定的任何工廠。

SetValueGeneratorFactory(Func<IProperty,ITypeBase,ValueGenerator>)

設定工廠用於產生此屬性的數值,或 null 清除先前設定的任何工廠。

SetValueGeneratorFactory(Type)

設定工廠用於產生此屬性的數值,或 null 清除先前設定的任何工廠。

ToDebugString(MetadataDebugStringOptions, Int32)

建立給定元資料的可讀表示法。

警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。

(繼承來源 IReadOnlyProperty)

明確介面實作

名稱 Description
IPropertyBase.GetPropertyAccessMode()

這塊 PropertyAccessMode 地被用來做事。 null 表示正在使用預設屬性存取模式。

(繼承來源 IProperty)
IReadOnlyProperty.GetElementType()

得到由此性質所代表的原始集合元素的配置。

IReadOnlyProperty.IsConcurrencyToken

會獲得一個值,表示該屬性是否被用作並行標記。 當屬性被設定為並行標記時,當該實體類型的實例在更新或刪除時 SaveChanges() ,會檢查資料庫中的值,以確保自從從資料庫檢索後該值沒有改變。 若變更,將拋出例外,且該變更不會套用到資料庫。

IReadOnlyProperty.IsNullable

得到一個值,表示此性質是否能包含 null。

IReadOnlyProperty.ValueGenerated

會獲得一個值,指示資料庫何時會產生該屬性的值。 即使該屬性設定由資料庫產生,EF 仍可能嘗試儲存特定值(而非由資料庫產生),當實體被加入並指派值,或該屬性被標記為已修改為現有實體時。 請參閱 GetBeforeSaveBehavior() 及 GetAfterSaveBehavior() 更多資訊與範例。

擴充方法

名稱 Description
AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)

為物件添加註解。

AnnotationsToDebugString(IAnnotatable, Int32)

取得物件上所有宣告註解的除錯字串。

CreateKeyEqualityComparer<TProperty>(IProperty)

建立 IEqualityComparer<T> 給定屬性類型的 for 值。

FindColumn(IProperty, StoreObjectIdentifier)

如果該欄位映射到該類資料表的儲存物件,則會回傳對應該屬性的欄位。

FindContainingPrimaryKey(IMutableProperty)

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

FindContainingPrimaryKey(IProperty)

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

FindFirstPrincipal(IMutableProperty)

若該屬性是外鍵的一部分,則找到該屬性所受約束的第一個主要性質。

FindFirstPrincipal(IProperty)

若該屬性是外鍵的一部分,則找到該屬性所受約束的第一個主要性質。

FindHiLoSequence(IProperty, StoreObjectIdentifier)

在模型中找到 , ISequence 用於 hi-lo 圖案。

FindHiLoSequence(IProperty)

在模型中找到 , ISequence 用於 hi-lo 圖案。

FindHiLoSequence(IReadOnlyProperty, StoreObjectIdentifier)

在模型中找到 , ISequence 用於 hi-lo 圖案。

FindHiLoSequence(IReadOnlyProperty)

在模型中找到 , ISequence 用於 hi-lo 圖案。

FindMapping(IProperty)
已淘汰.

回傳給定屬性的 。CoreTypeMapping

FindOverrides(IMutableProperty, StoreObjectIdentifier)

回傳特定類資料表儲存物件的屬性面覆寫。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

FindOverrides(IProperty, StoreObjectIdentifier)

回傳特定類資料表儲存物件的屬性面覆寫。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

FindOverrides(IReadOnlyProperty, StoreObjectIdentifier)

回傳特定類資料表儲存物件的屬性面覆寫。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

FindPrincipals(IMutableProperty)
已淘汰.

尋找包含該屬性的清單,若該屬性屬於外鍵,則該屬性受限制。

FindPrincipals(IProperty)
已淘汰.

尋找包含該屬性的清單,若該屬性屬於外鍵,則該屬性受限制。

FindRelationalMapping(IProperty)
已淘汰.

在最終模型上回傳給定屬性的 。RelationalTypeMapping

FindRelationalTypeMapping(IProperty, StoreObjectIdentifier)

在最終模型上回傳給定屬性的 。RelationalTypeMapping

FindRelationalTypeMapping(IProperty)

在最終模型上回傳給定屬性的 。RelationalTypeMapping

FindRelationalTypeMapping(IReadOnlyProperty, StoreObjectIdentifier)

在最終模型上回傳給定屬性的 。RelationalTypeMapping

FindRelationalTypeMapping(IReadOnlyProperty)

在最終模型上回傳給定屬性的 。RelationalTypeMapping

FindSequence(IReadOnlyProperty, StoreObjectIdentifier)

在模型中尋找用於關鍵值產生模式的 。ISequence

FindSequence(IReadOnlyProperty)

在模型中尋找用於關鍵值產生模式的 。ISequence

FindSharedStoreObjectRootProperty(IMutableProperty, StoreObjectIdentifier)

找到第一個 IProperty 映射到共享資料表物件中同一欄位的檔案。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

FindSharedStoreObjectRootProperty(IProperty, StoreObjectIdentifier)

找到第一個 IProperty 映射到共享資料表物件中同一欄位的檔案。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

FindSharedStoreObjectRootProperty(IReadOnlyProperty, StoreObjectIdentifier)

找到第一個 IProperty 映射到共享資料表物件中同一欄位的檔案。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

FindSharedTableRootPrimaryKeyProperty(IProperty)

找到 IProperty 代表與該屬性相同的主鍵屬性,但可能存在於共享的根表中。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

FindTypeMapping(IProperty)

回傳給定屬性的 。CoreTypeMapping

GetAfterSaveBehavior(IProperty)
已淘汰.

會取得一個值,表示該屬性在實體儲存到資料庫後是否能被修改。

若 Throw,則在該實體存在於資料庫後,若該屬性被賦予新值,則會拋出例外。

若 Ignore,則資料庫中已存在的實體屬性值任何修改將被忽略。

GetAnnotation(IAnnotatable, String)

取得帶有名稱的註解,若不存在則拋出。

GetAnnotation(IMutableAnnotatable, String)

取得帶有名稱的註解,若不存在則拋出。

GetBeforeSaveBehavior(IProperty)
已淘汰.

會取得一個值,指示該屬性是否能在實體儲存到資料庫前被修改。

若 Throw,則當該屬性在狀態中 Added 被賦值時,將拋出異常。

若 Ignore,則任何值集合在狀態 Added 下都會被忽略。

GetCollation(IProperty, StoreObjectIdentifier)

回傳用於該欄位的排序。

GetCollation(IProperty)

回傳用於該欄位的排序。

GetCollation(IReadOnlyProperty, StoreObjectIdentifier)

回傳用於該欄位的排序。

GetCollation(IReadOnlyProperty)

回傳用於該欄位的排序。

GetColumnBaseName(IProperty)

回傳屬性將映射到的欄位的基底名稱。

GetColumnBaseName(IReadOnlyProperty)
已淘汰.

回傳屬性將映射到的欄位的基底名稱。

GetColumnName(IProperty, StoreObjectIdentifier)

回傳該屬性映射到特定資料表的欄位名稱。

GetColumnName(IProperty)
已淘汰.

回傳該屬性映射到的資料表欄位名稱。

GetColumnName(IReadOnlyProperty, StoreObjectIdentifier)

回傳該屬性映射到特定資料表的欄位名稱。

GetColumnName(IReadOnlyProperty)

回傳該屬性將映射到的欄位名稱。

GetColumnOrder(IReadOnlyProperty, StoreObjectIdentifier)

回傳該屬性映射到特定資料表的欄位順序。

GetColumnOrder(IReadOnlyProperty)

回傳該屬性所映射的欄位順序。

GetColumnType(IProperty, StoreObjectIdentifier)

回傳該屬性所映射欄位的資料庫類型。

GetColumnType(IProperty)

回傳該屬性所映射欄位的資料庫類型。

GetColumnType(IReadOnlyProperty, StoreObjectIdentifier)

回傳該屬性所映射欄位的資料庫類型,或 null 若找不到該資料庫類型,則回傳該欄位。

GetColumnType(IReadOnlyProperty)

回傳該屬性所映射欄位的資料庫類型,或 null 若找不到該資料庫類型,則回傳該欄位。

GetComment(IProperty, StoreObjectIdentifier)

回傳該屬性所映射欄位的註解。

GetComment(IProperty)

回傳該屬性所映射欄位的註解。

GetComment(IReadOnlyProperty, StoreObjectIdentifier)

回傳該屬性所映射欄位的註解。

GetComment(IReadOnlyProperty)

回傳該屬性所映射欄位的註解。

GetComputedColumnSql(IProperty, StoreObjectIdentifier)

回傳用作該屬性對應欄位計算值的 SQL 表達式。

GetComputedColumnSql(IProperty)

回傳用作該屬性對應欄位計算值的 SQL 表達式。

GetComputedColumnSql(IReadOnlyProperty, StoreObjectIdentifier)

回傳用作該屬性對應欄位計算值的 SQL 表達式。

GetComputedColumnSql(IReadOnlyProperty)

回傳用作該屬性對應欄位計算值的 SQL 表達式。

GetContainingForeignKeys(IMutableProperty)

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

GetContainingForeignKeys(IProperty)

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

GetContainingIndexes(IMutableProperty)

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

GetContainingIndexes(IProperty)

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

GetContainingKeys(IMutableProperty)

取得所有使用此屬性的主鍵或備用鍵(包括包含此屬性的複合鍵)。

GetContainingKeys(IProperty)

取得所有使用此屬性的主鍵或備用鍵(包括包含此屬性的複合鍵)。

GetContainingPrimaryKey(IMutableProperty)
已淘汰.

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

GetContainingPrimaryKey(IProperty)
已淘汰.

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

GetCurrentValueComparer(IPropertyBase)

比較追蹤條目中的數值IUpdateEntry會得到 aIComparer<T>。

GetDefaultColumnBaseName(IProperty)

回傳屬性將映射到的欄位的預設基底名稱

GetDefaultColumnBaseName(IReadOnlyProperty)
已淘汰.

回傳屬性將映射到的欄位的預設基底名稱

GetDefaultColumnMappings(IProperty)

回傳屬性會映射到的預設欄位。

GetDefaultColumnName(IProperty, StoreObjectIdentifier)

回傳屬性將映射到的預設欄位名稱。

GetDefaultColumnName(IProperty)
已淘汰.

回傳預設的表格欄位名稱,該欄位名稱將被映射到該屬性。

GetDefaultColumnName(IReadOnlyProperty, StoreObjectIdentifier)

回傳屬性將映射到的預設欄位名稱。

GetDefaultColumnName(IReadOnlyProperty)

回傳屬性將映射到的欄位的預設基底名稱

GetDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier)

會取得預設的約束名稱。

GetDefaultConstraintName(IReadOnlyProperty)

會取得預設的約束名稱。

GetDefaultDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier)

根據資料表和欄位名稱產生預設的約束名稱。

GetDefaultValue(IProperty, StoreObjectIdentifier)

回傳作為該屬性所映射欄位預設值的物件。

GetDefaultValue(IProperty)

回傳作為該屬性所映射欄位預設值的物件。

GetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier)

回傳作為該屬性所映射欄位預設值的物件。

GetDefaultValue(IReadOnlyProperty)

回傳作為該屬性所映射欄位預設值的物件。

GetDefaultValueGenerationStrategy(IReadOnlyProperty)

會回傳該屬性的預設 SqliteValueGenerationStrategy 值。

GetDefaultValueSql(IProperty, StoreObjectIdentifier)

回傳作為該屬性對應欄位預設值的 SQL 運算式。

GetDefaultValueSql(IProperty)

回傳作為該屬性對應欄位預設值的 SQL 運算式。

GetDefaultValueSql(IReadOnlyProperty, StoreObjectIdentifier)

回傳作為該屬性對應欄位預設值的 SQL 運算式。

GetDefaultValueSql(IReadOnlyProperty)

回傳作為該屬性對應欄位預設值的 SQL 運算式。

GetFieldName(IPropertyBase)

取得該性質的背地名稱,或 null 若底盤不已知則得出。

GetFullTextSearchLanguage(IReadOnlyProperty)

回傳為此屬性定義的全文搜尋語言。

GetFunctionColumnMappings(IProperty)

回傳該屬性所映射的函式欄位。

GetGeometricDimension(IProperty)

回傳建立此屬性欄位時所使用的維度。

GetGetter(IPropertyBase)

讀取該房產價值而獲得 A IClrPropertyGetter 。

請注意,若以此方法為陰影屬性IsShadowProperty(IPropertyBase)()呼叫是錯誤的,因為該性質沒有對應 MemberInfo。

GetHiLoSequenceName(IProperty, StoreObjectIdentifier)

回傳名稱以用於 hi-lo 序列。

GetHiLoSequenceName(IProperty)

回傳名稱以用於 hi-lo 序列。

GetHiLoSequenceName(IReadOnlyProperty, StoreObjectIdentifier)

回傳名稱以用於 hi-lo 序列。

GetHiLoSequenceName(IReadOnlyProperty)

回傳名稱以用於 hi-lo 序列。

GetHiLoSequenceSchema(IProperty, StoreObjectIdentifier)

回傳用於 hi-lo 序列的結構。

GetHiLoSequenceSchema(IProperty)

回傳用於 hi-lo 序列的結構。

GetHiLoSequenceSchema(IReadOnlyProperty, StoreObjectIdentifier)

回傳用於 hi-lo 序列的結構。

GetHiLoSequenceSchema(IReadOnlyProperty)

回傳用於 hi-lo 序列的結構。

GetIdentityIncrement(IProperty, StoreObjectIdentifier)

回傳身份遞增。

GetIdentityIncrement(IProperty)

回傳身份遞增。

GetIdentityIncrement(IReadOnlyProperty, StoreObjectIdentifier)

回傳身份遞增。

GetIdentityIncrement(IReadOnlyProperty)

回傳身份遞增。

GetIdentitySeed(IProperty, StoreObjectIdentifier)

回傳身份種子。

GetIdentitySeed(IProperty)

回傳身份種子。

GetIdentitySeed(IReadOnlyProperty, StoreObjectIdentifier)

回傳身份種子。

GetIdentitySeed(IReadOnlyProperty)

回傳身份種子。

GetIndex(IPropertyBase)

取得該物業的物業索引。

GetIsFullTextSearchEnabled(IReadOnlyProperty)

回傳該屬性是否啟用全文搜尋的值。

GetIsStored(IProperty, StoreObjectIdentifier)

判斷該屬性映射到的計算欄位值是儲存在資料庫中,還是在讀取時計算。

GetIsStored(IProperty)

判斷該屬性映射到的計算欄位值是儲存在資料庫中,還是在讀取時計算。

GetIsStored(IReadOnlyProperty, StoreObjectIdentifier)

判斷該屬性映射到的計算欄位值是儲存在資料庫中,還是在讀取時計算。

GetIsStored(IReadOnlyProperty)

判斷該屬性映射到的計算欄位值是儲存在資料庫中,還是在讀取時計算。

GetJsonPropertyName(IProperty)

在鎖定 Cosmos 時,回傳該物件所映射的屬性名稱。

GetJsonPropertyName(IReadOnlyProperty)

在鎖定 Cosmos 時,回傳該物件所映射的屬性名稱。

GetJsonPropertyName(IReadOnlyProperty)

取得用於映射到 JSON 欄位的實體屬性的 JSON 屬性名稱值。

GetKeyValueComparer(IProperty)

用鍵值來 ValueComparer 使用這個屬性,或者 null 如果沒有設定任何鍵。

GetMappedStoreObjects(IReadOnlyProperty, StoreObjectType)

回傳該屬性映射到的類表格儲存物件。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

GetMaxLength(IProperty, StoreObjectIdentifier)

取得此屬性允許的最大資料長度。 例如,若性質為 a String ,則這是最大字元數。

GetMaxLength(IProperty)

取得此屬性允許的最大資料長度。 例如,若性質為 a String ,則這是最大字元數。

GetMaxLength(IReadOnlyProperty, StoreObjectIdentifier)

取得此屬性允許的最大資料長度。 例如,若性質為 a String ,則這是最大字元數。

GetMemberInfo(IPropertyBase, Boolean, Boolean)

取得PropertyInfoFieldInfo或,應該用來取得或設定給定屬性的值。

請注意,若以此方法為陰影屬性IsShadowProperty(IPropertyBase)()呼叫是錯誤的,因為該性質沒有對應 MemberInfo。

GetOrAddAnnotation(IMutableAnnotatable, String, String)

取得帶有特定鍵的現有註解,或若不存在註解則新增。

GetOrCreateOverrides(IMutableProperty, StoreObjectIdentifier)

回傳特定類資料表儲存物件的屬性面覆寫。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

GetOverrides(IMutableProperty)

回傳所有屬性面覆寫。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

GetOverrides(IReadOnlyProperty)

回傳所有屬性面覆寫。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

GetPrecision(IProperty, StoreObjectIdentifier)

取得此性質允許的資料精確度。 例如,若性質為 a Decimal ,則為最大數字數。

GetPrecision(IProperty)

取得此性質允許的資料精確度。 例如,若性質為 a Decimal ,則為最大數字數。

GetPrecision(IReadOnlyProperty, StoreObjectIdentifier)

取得此性質允許的資料精確度。 例如,若性質為 a Decimal ,則為最大數字數。

GetPropertyAccessMode(IPropertyBase)

這塊 PropertyAccessMode 地被用來做事。 null 表示正在使用預設屬性存取模式。

GetPropertyName(IProperty)

回傳用於鎖定 Cosmos 的物業名稱。

GetProviderClrType(IProperty)

取得屬性值在送給資料庫提供者前會轉換成的類型。

GetRelationalTypeMapping(IProperty)

在最終模型上回傳給定屬性的 。RelationalTypeMapping

GetRelationalTypeMapping(IReadOnlyProperty)

在最終模型上回傳給定屬性的 。RelationalTypeMapping

GetScale(IProperty, StoreObjectIdentifier)

取得此屬性允許的資料規模。 例如,若性質為 a Decimal ,則此為最大小數位數。

GetScale(IProperty)

取得此屬性允許的資料規模。 例如,若性質為 a Decimal ,則此為最大小數位數。

GetScale(IReadOnlyProperty, StoreObjectIdentifier)

取得此屬性允許的資料規模。 例如,若性質為 a Decimal ,則此為最大小數位數。

GetSequenceName(IReadOnlyProperty, StoreObjectIdentifier)

回傳名稱用於關鍵值產生序列。

GetSequenceName(IReadOnlyProperty)

回傳名稱用於關鍵值產生序列。

GetSequenceSchema(IReadOnlyProperty, StoreObjectIdentifier)

回傳用於關鍵值產生序列的結構。

GetSequenceSchema(IReadOnlyProperty)

回傳用於關鍵值產生序列的結構。

GetSqlQueryColumnMappings(IProperty)

回傳該屬性所映射的 SQL 查詢欄位。

GetSrid(IProperty, StoreObjectIdentifier)

回傳 SRID,用於建立此屬性欄位。

GetSrid(IProperty)

回傳 SRID,用於建立此屬性欄位。

GetSrid(IReadOnlyProperty, StoreObjectIdentifier)

回傳 SRID,用於建立此屬性欄位。

GetSrid(IReadOnlyProperty)

回傳 SRID,用於建立此屬性欄位。

GetStructuralValueComparer(IProperty)
已淘汰.

獲得 ValueComparer 此屬性的結構複製品,或 null 在未設定時使用。

GetTableColumnMappings(IProperty)

回傳該屬性所映射的表格欄位。

GetTypeMapping(IProperty)

從最終模型回傳給定屬性的 。CoreTypeMapping

GetValueComparer(IProperty)

如果沒有設定,則會得到 。ValueComparernull

GetValueConverter(IProperty)
已淘汰.

取得這個屬性的自訂 ValueConverter 設定。

GetValueGenerationStrategy(IProperty, StoreObjectIdentifier)

將該 SqlServerValueGenerationStrategy 物業歸還使用。

若該性質未設定策略,則將從 中取 IModel出策略。

GetValueGenerationStrategy(IProperty)

將該 SqlServerValueGenerationStrategy 物業歸還使用。

若該性質未設定策略,則將從 中取 IModel出策略。

GetValueGenerationStrategy(IReadOnlyProperty, StoreObjectIdentifier)

將該 SqliteValueGenerationStrategy 物業歸還使用。

GetValueGenerationStrategy(IReadOnlyProperty, StoreObjectIdentifier)

將該 SqlServerValueGenerationStrategy 物業歸還使用。

GetValueGenerationStrategy(IReadOnlyProperty)

將該 SqliteValueGenerationStrategy 物業歸還使用。

GetValueGenerationStrategy(IReadOnlyProperty)

將該 SqlServerValueGenerationStrategy 物業歸還使用。

GetValueGeneratorFactory(IProperty)
已淘汰.

取得已設定為此屬性產生數值的工廠(如果有的話)。

GetVectorDimensions(IReadOnlyProperty)

回傳此性質中儲存的向量維度。

GetVectorDistanceFunction(IReadOnlyProperty)

回傳此性質中儲存的向量距離函數。

GetVectorType(IReadOnlyProperty)

回傳此性質中儲存的向量定義。

GetViewColumnMappings(IProperty)

回傳該屬性所映射的檢視欄位。

IsColumnNullable(IProperty, StoreObjectIdentifier)

檢查映射到給定 IProperty 欄位時,在資料庫中建立時是否可為空。

這取決於該性質本身以及其映射方式。 例如,TPH 類型階層中導出的非可空屬性會映射到可空欄位。 以及同一個資料表中可選型態的屬性。

IsColumnNullable(IProperty)

檢查對應到給定 IProperty 欄位時,在資料庫中建立時是否會被取消。

這不僅取決於物業本身,也取決於其如何被繪製。 例如,TPH 類型階層中的不可空屬性會映射到可空欄位。

IsColumnNullable(IProperty)

檢查映射到給定 IProperty 欄位時,在資料庫中建立時是否可為空。

這取決於該性質本身以及其映射方式。 例如,TPH 類型階層中導出的非可空屬性會映射到可空欄位。 以及同一個資料表中可選型態的屬性。

IsColumnNullable(IReadOnlyProperty, StoreObjectIdentifier)

檢查映射到該屬性的欄位在資料庫建立時是否會成為可空。

IsColumnNullable(IReadOnlyProperty)

檢查映射到給定 IProperty 欄位時,在資料庫中建立時是否可為空。

IsFixedLength(IProperty, StoreObjectIdentifier)

回傳一個標誌,指示該屬性是否能僅儲存固定長度的資料,例如字串。

IsFixedLength(IProperty)

回傳一個標誌,指示該屬性是否能僅儲存固定長度的資料,例如字串。

IsFixedLength(IReadOnlyProperty, StoreObjectIdentifier)

回傳一個標誌,指示該屬性是否能僅儲存固定長度的資料,例如字串。

IsFixedLength(IReadOnlyProperty)

回傳一個標誌,指示該屬性是否能僅儲存固定長度的資料,例如字串。

IsForeignKey(IProperty)
已淘汰.

會獲得一個值,表示該屬性是否被用作外鍵(或複合外鍵的一部分)。

IsHidden(IReadOnlyProperty)

回傳一個值,指示該屬性的欄位是否以 SQL Server HIDDEN 標誌定義,該欄位將該欄位排除在結果之外SELECT *。

IsIndex(IProperty)
已淘汰.

會得到一個值,表示該屬性是否被用作指數(或是綜合指數的一部分)。

IsIndexerProperty(IPropertyBase)

會得到一個值,表示這是否屬於索引器屬性。 索引器屬性是指透過實體類別上的索引器存取的屬性。

IsKey(IProperty)
已淘汰.

會獲得一個值,表示該屬性是否被用作主鍵或備用鍵(或是複合主鍵或備用鍵的一部分)。

IsPrimaryKey(IProperty)
已淘汰.

會獲得一個值,表示此屬性是否被用作主鍵(或複合主鍵的一部分)。

IsShadowProperty(IPropertyBase)
已淘汰.

會得到一個值,表示這是否是影子屬性。 影子屬性是指在實體類別中沒有對應屬性的屬性。 屬性的當前值會儲存在實體 ChangeTracker 類別的實例中,而非儲存在實體類別的實例中。

IsSparse(IReadOnlyProperty, StoreObjectIdentifier)

回傳一個值,表示該屬性欄位是否為稀疏。

IsSparse(IReadOnlyProperty)

回傳一個值,表示該屬性欄位是否為稀疏。

IsUnicode(IMutableProperty, Nullable<Boolean>)

設定一個值,表示此屬性是否能持久化 Unicode 字元。

IsUnicode(IProperty, StoreObjectIdentifier)

會取得一個值,表示該屬性是否能持久化 Unicode 字元。

IsUnicode(IProperty)

會取得一個值,表示該屬性是否能持久化 Unicode 字元。

IsUnicode(IReadOnlyProperty, StoreObjectIdentifier)

會取得一個值,表示該屬性是否能持久化 Unicode 字元。

IsUniqueIndex(IProperty)
已淘汰.

會獲得一個值,表示此屬性是否被用作唯一指數(或是唯一綜合指數的一部分)。

Relational(IMutableProperty)

取得屬性相關的關聯式資料庫元資料。

Relational(IProperty)

取得屬性相關的關聯式資料庫元資料。

RemoveOverrides(IMutableProperty, StoreObjectIdentifier)

移除特定類資料表儲存物件的屬性面覆寫。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

Scaffolding(IProperty)

代表結構類型的純量性質。

SetAfterSaveBehavior(IMutableProperty, Nullable<PropertySaveBehavior>)

取得或設定一個值,指示該屬性在實體儲存到資料庫後是否能被修改。

若 Throw,則在該實體存在於資料庫後,若該屬性被賦予新值,則會拋出例外。

若 Ignore,則資料庫中已存在的實體屬性值任何修改將被忽略。

SetBeforeSaveBehavior(IMutableProperty, Nullable<PropertySaveBehavior>)

取得或設定一個值,指示該屬性是否能在實體儲存到資料庫前被修改。

若 Throw,則當該屬性在狀態中 Added 被賦值時,將拋出異常。

若 Ignore,則任何值集合在狀態 Added 下都會被忽略。

SetCollation(IMutableProperty, String)

配置一個彙整以用於該屬性映射的欄位。

SetColumnName(IMutableProperty, String, StoreObjectIdentifier)

設定該屬性映射到的特定類資料表儲存物件的欄位。

SetColumnName(IMutableProperty, String)

設定屬性映射到的欄位。

SetColumnOrder(IMutableProperty, Nullable<Int32>)

設定屬性映射到的欄位順序。

SetColumnType(IMutableProperty, String)

設定屬性所映射欄位的資料庫類型。

SetComment(IMutableProperty, String)

配置一個註解,使其套用到該屬性所映射的欄位。

SetComputedColumnSql(IMutableProperty, String)

設定用於該屬性映射欄位計算值的 SQL 運算式。

SetDefaultConstraintName(IMutableProperty, String)

設定預設的約束名稱。

SetDefaultValue(IMutableProperty, Object)

設定該屬性所映射欄位的預設值物件。

SetDefaultValueSql(IMutableProperty, String)

設定該屬性所映射欄位的 SQL 運算式作為預設值。

SetField(IMutablePropertyBase, String)

設定該屬性應使用的底層 CLR 欄位。

背襯場通常依約定方式求得,如下所述: http://go.microsoft.com/fwlink/?LinkId=723277. 此方法對於在慣例下找不到正確欄位時,明確設定支持欄位非常有用。

預設情況下,如果找到或指定了後盾欄位,則在建構新物件時會使用,通常是在從資料庫查詢實體時。 所有其他進出通道皆使用物業。 此參數可透過呼叫 SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>)來改變。

SetFullTextSearchLanguage(IMutableProperty, String)

設定為此屬性定義的全文搜尋語言。

SetGeometricDimension(IMutableProperty, String)

設定建立欄位時所使用的維度。

SetHiLoSequenceName(IMutableProperty, String)

設定用於 hi-lo 序列的名稱。

SetHiLoSequenceSchema(IMutableProperty, String)

設定 schema 來用於 hi-lo 序列。

SetIdentityIncrement(IMutableProperty, Nullable<Int32>, StoreObjectIdentifier)

設定特定資料表的單位增量。

SetIdentityIncrement(IMutableProperty, Nullable<Int32>)

設定單位增量。

SetIdentitySeed(IMutableProperty, Nullable<Int32>)

設定身份種子。

SetIdentitySeed(IMutableProperty, Nullable<Int64>, StoreObjectIdentifier)

設定特定資料表的身份種子。

SetIdentitySeed(IMutableProperty, Nullable<Int64>)

設定身份種子。

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

設置一個旗標,指示該性質是否能僅儲存固定長度的資料,例如字串。

SetIsFullTextSearchEnabled(IMutableProperty, Nullable<Boolean>)

啟用本物件的全文搜尋。

SetIsHidden(IMutableProperty, Nullable<Boolean>)

設定一個值,表示屬性欄位是否以 SQL Server HIDDEN 標誌定義。

SetIsSparse(IMutableProperty, Nullable<Boolean>)

設定一個值,表示該屬性的欄位是否稀疏。

SetIsStored(IMutableProperty, Nullable<Boolean>)

設定該屬性映射到的計算欄位值是儲存在資料庫中,還是在讀取時計算。

SetIsUnicode(IMutableProperty, Nullable<Boolean>)

設定一個值,表示此屬性是否能持久化 Unicode 字元。

SetJsonPropertyName(IMutableProperty, String)

設定該物件在鎖定 Cosmos 時所映射的屬性名稱。

SetJsonPropertyName(IMutableProperty, String)

設定 JSON 屬性名稱的值,該屬性用於映射到 JSON 欄位的實體屬性。

SetKeyValueComparer(IMutableProperty, ValueComparer)
已淘汰.

在執行關鍵比較時設定此屬性的慣例 ValueComparer 。

SetMaxLength(IMutableProperty, Nullable<Int32>)

設定此屬性允許的最大資料長度。 例如,若屬性為 String ',則為最大字元數。

SetOrRemoveAnnotation(IMutableAnnotatable, String, Object)

設定以名字儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。 若 null 提供 則移除現有註解。

SetPrecision(IMutableProperty, Nullable<Int32>)

設定此性質允許的資料精度。 例如,若性質為 a Decimal ,則為最大數字數。

SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>)

設定 使用 這個 PropertyAccessMode 屬性。

SetPropertyAccessMode(IMutablePropertyBase, Nullable<PropertyAccessMode>)

設定 使用 這個 PropertyAccessMode 屬性。

SetPropertyName(IMutableProperty, String)

設定用於鎖定 Cosmos 的屬性名稱。

SetProviderClrType(IMutableProperty, Type)

設定屬性值在送給資料庫提供者前會轉換成的型別。

SetScale(IMutableProperty, Nullable<Int32>)

設定此屬性允許的資料尺度。 例如,若性質為 a Decimal ,則此為最大小數位數。

SetSequenceName(IMutableProperty, String)

設定名稱用於關鍵值產生序列。

SetSequenceSchema(IMutableProperty, String)

設定用於鍵值產生序列的結構。

SetSrid(IMutableProperty, Nullable<Int32>)

在建立此屬性欄位時,會設定 SRID 來使用。

SetStructuralValueComparer(IMutableProperty, ValueComparer)
已淘汰.

為此物業設定結構複製的慣例 ValueComparer 。

SetTypeMapping(IMutableProperty, CoreTypeMapping)

為給定性質設定 。CoreTypeMapping

SetValueComparer(IMutableProperty, ValueComparer)

為這個物業設定了慣例 ValueComparer 。

SetValueConverter(IMutableProperty, ValueConverter)

為這個物業設定了慣例 ValueConverter 。

SetValueGenerationStrategy(IMutableProperty, Nullable<SqliteValueGenerationStrategy>, StoreObjectIdentifier)

為特定資料表設定屬性的 。SqliteValueGenerationStrategy

SetValueGenerationStrategy(IMutableProperty, Nullable<SqliteValueGenerationStrategy>)

設定 屬性 SqliteValueGenerationStrategy 的 。

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier)

為特定資料表設定屬性的 。SqlServerValueGenerationStrategy

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>)

設定 屬性 SqlServerValueGenerationStrategy 的 。

SetValueGeneratorFactory(IMutableProperty, Func<IProperty,IEntityType,ValueGenerator>)

設定工廠用於產生此屬性的數值,或 null 清除先前設定的任何工廠。

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

SetVectorDimensions(IMutableProperty, Nullable<Int32>)

設定此性質中儲存向量的維度。

SetVectorDistanceFunction(IMutableProperty, Nullable<DistanceFunction>)

設定此性質中向量的距離函數。

SetVectorType(IMutableProperty, CosmosVectorType)

設定此性質中儲存向量的定義。

Sqlite(IMutableProperty)

取得某個屬性的 SQLite 專屬元資料。

Sqlite(IProperty)

取得某個屬性的 SQLite 專屬元資料。

SqlServer(IMutableProperty)

取得 SQL Server 專屬的屬性元資料。

SqlServer(IProperty)

取得 SQL Server 專屬的屬性元資料。

ToDebugString(IProperty, MetadataDebugStringOptions, Int32)

建立給定元資料的可讀表示法。

警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。

TryGetDefaultValue(IReadOnlyProperty, Object)

回傳作為該屬性所映射欄位預設值的物件。

TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)

回傳作為該屬性所映射欄位預設值的物件。

適用於