語言

IProperty 介面

定義

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

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

備註

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

屬性

名稱 Description
AfterSaveBehavior

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

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

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

BeforeSaveBehavior

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

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

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

ClrType

取得該房產所持有的價值類型。

DeclaringEntityType
已淘汰.

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

DeclaringType

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

(繼承來源 IReadOnlyPropertyBase)
FieldInfo

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

(繼承來源 IReadOnlyPropertyBase)
IsAutoLoaded

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

(繼承來源 IReadOnlyProperty)
IsCollection

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

(繼承來源 IReadOnlyPropertyBase)
IsConcurrencyToken

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

IsNullable

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

IsPrimitiveCollection

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

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

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

IsReadOnlyBeforeSave
已淘汰.

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

IsShadowProperty

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

IsStoreGeneratedAlways
已淘汰.

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

Item[String]

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

(繼承來源 IReadOnlyAnnotatable)
Name

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

(繼承來源 IReadOnlyPropertyBase)
PropertyInfo

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

(繼承來源 IReadOnlyPropertyBase)
RequiresValueGenerator

會得到一個值,表示當新增實體加入上下文時,是否需要 a ValueGenerator 產生值。

Sentinel

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

(繼承來源 IReadOnlyPropertyBase)
ValueGenerated

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

方法

名稱 Description
AddRuntimeAnnotation(String, Object)

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

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

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

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

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

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 鑰匙來處理這個物業。

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 來取得此屬性的提供者值。

GetRuntimeAnnotations()

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

(繼承來源 IAnnotatable)
GetScale()

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

(繼承來源 IReadOnlyProperty)
GetTypeMapping()

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

(繼承來源 IReadOnlyProperty)
GetValueComparer()

取得這個物業的權利 ValueComparer 。

GetValueConverter()

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

(繼承來源 IReadOnlyProperty)
GetValueGeneratorFactory()

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

(繼承來源 IReadOnlyProperty)
IsForeignKey()

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

(繼承來源 IReadOnlyProperty)
IsIndex()

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

(繼承來源 IReadOnlyProperty)
IsIndexerProperty()

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

(繼承來源 IReadOnlyPropertyBase)
IsKey()

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

(繼承來源 IReadOnlyProperty)
IsPrimaryKey()

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

(繼承來源 IReadOnlyProperty)
IsUnicode()

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

(繼承來源 IReadOnlyProperty)
IsUniqueIndex()

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

(繼承來源 IReadOnlyProperty)
RemoveRuntimeAnnotation(String)

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

(繼承來源 IAnnotatable)
SetRuntimeAnnotation(String, Object)

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

(繼承來源 IAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

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

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

(繼承來源 IReadOnlyProperty)

明確介面實作

名稱 Description
IPropertyBase.GetPropertyAccessMode()

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

擴充方法

名稱 Description
AnnotationsToDebugString(IAnnotatable, Int32)

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

CreateKeyEqualityComparer<TProperty>(IProperty)

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

FindColumn(IProperty, StoreObjectIdentifier)

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

FindContainingPrimaryKey(IProperty)

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

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(IProperty, StoreObjectIdentifier)

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

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

FindOverrides(IReadOnlyProperty, StoreObjectIdentifier)

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

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

FindPrincipals(IProperty)
已淘汰.

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

FindRelationalMapping(IProperty)
已淘汰.

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

FindRelationalTypeMapping(IProperty, StoreObjectIdentifier)

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

FindRelationalTypeMapping(IProperty)

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

FindRelationalTypeMapping(IReadOnlyProperty, StoreObjectIdentifier)

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

FindRelationalTypeMapping(IReadOnlyProperty)

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

FindSequence(IProperty, StoreObjectIdentifier)

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

FindSequence(IProperty)

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

FindSequence(IReadOnlyProperty, StoreObjectIdentifier)

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

FindSequence(IReadOnlyProperty)

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

FindSharedStoreObjectRootProperty(IProperty, StoreObjectIdentifier)

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

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

FindSharedStoreObjectRootProperty(IReadOnlyProperty, StoreObjectIdentifier)

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

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

FindSharedTableRootPrimaryKeyProperty(IProperty)

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

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

FindTypeMapping(IProperty)

回傳給定屬性的 。CoreTypeMapping

GetAfterSaveBehavior(IProperty)
已淘汰.

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

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

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

GetAnnotation(IAnnotatable, 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(IProperty)

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

GetContainingIndexes(IProperty)

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

GetContainingKeys(IProperty)

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

GetContainingPrimaryKey(IProperty)
已淘汰.

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

GetCurrentValueComparer(IPropertyBase)

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

GetDataAnnotations(IProperty, IAnnotationCodeGenerator)

取得資料註解以設定屬性。

GetDefaultColumnBaseName(IProperty)

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

GetDefaultColumnBaseName(IReadOnlyProperty)
已淘汰.

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

GetDefaultColumnMappings(IProperty)

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

GetDefaultColumnMappings(IPropertyBase)

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

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 運算式。

GetDeleteStoredProcedureParameterMappings(IProperty)

回傳該屬性所映射的刪除儲存程序參數。

GetFieldName(IPropertyBase)

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

GetFluentApiCalls(IProperty, IAnnotationCodeGenerator)

取得流暢的 API 呼叫來設定屬性。

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)

取得該物業的物業索引。

GetInsertStoredProcedureParameterMappings(IProperty)

回傳該屬性映射的插入儲存程序參數。

GetInsertStoredProcedureResultColumnMappings(IProperty)

回傳該屬性映射的插入儲存程序結果欄位。

GetIsFullTextSearchEnabled(IReadOnlyProperty)

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

GetIsStored(IProperty, StoreObjectIdentifier)

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

GetIsStored(IProperty)

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

GetIsStored(IReadOnlyProperty, StoreObjectIdentifier)

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

GetIsStored(IReadOnlyProperty)

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

GetJsonElementMappings(IPropertyBase)

回傳此屬性的 JSON 元素映射。

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。

GetOverrides(IProperty)

回傳所有屬性面覆寫。

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

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)

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

GetReaderFieldValue(IProperty, RelationalDataReader, Int32, Boolean)

從給定 relationalReader的 中讀取該性質的值。

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)

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

GetTableColumnMappings(IPropertyBase)

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

GetTypeMapping(IProperty)

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

GetUpdateStoredProcedureParameterMappings(IProperty)

回傳該屬性所映射的更新儲存程序參數。

GetUpdateStoredProcedureResultColumnMappings(IProperty)

回傳該屬性映射到的更新儲存程序結果欄位。

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)

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

GetViewColumnMappings(IPropertyBase)

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

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(IProperty, StoreObjectIdentifier)

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

IsUnicode(IProperty)

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

IsUnicode(IReadOnlyProperty, StoreObjectIdentifier)

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

IsUniqueIndex(IProperty)
已淘汰.

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

Relational(IProperty)

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

Scaffolding(IProperty)

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

Sqlite(IProperty)

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

SqlServer(IProperty)

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

ToDebugString(IProperty, MetadataDebugStringOptions, Int32)

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

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

TryGetDefaultValue(IReadOnlyProperty, Object)

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

TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)

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

適用於