語言

RelationalPropertyExtensions 類別

定義

關聯式資料庫元資料的屬性擴充方法。

[System.Runtime.CompilerServices.Nullable(0)]
public static class RelationalPropertyExtensions
public static class RelationalPropertyExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalPropertyExtensions = class
type RelationalPropertyExtensions = class
Public Module RelationalPropertyExtensions
繼承
RelationalPropertyExtensions
屬性

備註

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

方法

名稱 Description
FindColumn(IProperty, StoreObjectIdentifier)

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

FindOverrides(IConventionProperty, StoreObjectIdentifier)

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

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

FindOverrides(IMutableProperty, StoreObjectIdentifier)

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

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

FindOverrides(IProperty, StoreObjectIdentifier)

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

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

FindOverrides(IReadOnlyProperty, StoreObjectIdentifier)

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

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

FindRelationalMapping(IProperty)
已淘汰.

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

FindRelationalTypeMapping(IProperty, StoreObjectIdentifier)

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

FindRelationalTypeMapping(IProperty)

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

FindRelationalTypeMapping(IReadOnlyProperty, StoreObjectIdentifier)

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

FindRelationalTypeMapping(IReadOnlyProperty)

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

FindSharedStoreObjectRootProperty(IConventionProperty, StoreObjectIdentifier)

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

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

FindSharedStoreObjectRootProperty(IMutableProperty, StoreObjectIdentifier)

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

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

FindSharedStoreObjectRootProperty(IProperty, StoreObjectIdentifier)

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

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

FindSharedStoreObjectRootProperty(IReadOnlyProperty, StoreObjectIdentifier)

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

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

FindSharedTableRootPrimaryKeyProperty(IProperty)

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

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

GetCollation(IProperty, StoreObjectIdentifier)

回傳用於該欄位的排序。

GetCollation(IProperty)

回傳用於該欄位的排序。

GetCollation(IReadOnlyProperty, StoreObjectIdentifier)

回傳用於該欄位的排序。

GetCollation(IReadOnlyProperty)

回傳用於該欄位的排序。

GetCollationConfigurationSource(IConventionProperty)

取得欄位整合的 。ConfigurationSource

GetColumnBaseName(IProperty)

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

GetColumnBaseName(IReadOnlyProperty)
已淘汰.

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

GetColumnName(IProperty, StoreObjectIdentifier)

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

GetColumnName(IProperty)
已淘汰.

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

GetColumnName(IReadOnlyProperty, StoreObjectIdentifier)

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

GetColumnName(IReadOnlyProperty)

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

GetColumnNameConfigurationSource(IConventionProperty, StoreObjectIdentifier)

取得特定類資料表儲存物件欄位名稱的 。ConfigurationSource

GetColumnNameConfigurationSource(IConventionProperty)

取得欄位名稱的 。ConfigurationSource

GetColumnOrder(IReadOnlyProperty, StoreObjectIdentifier)

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

GetColumnOrder(IReadOnlyProperty)

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

GetColumnOrderConfigurationSource(IConventionProperty)

取得欄位順序的 。ConfigurationSource

GetColumnType(IProperty, StoreObjectIdentifier)

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

GetColumnType(IProperty)

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

GetColumnType(IReadOnlyProperty, StoreObjectIdentifier)

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

GetColumnType(IReadOnlyProperty)

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

GetColumnTypeConfigurationSource(IConventionProperty)

取得欄位名稱的 。ConfigurationSource

GetComment(IProperty, StoreObjectIdentifier)

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

GetComment(IProperty)

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

GetComment(IReadOnlyProperty, StoreObjectIdentifier)

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

GetComment(IReadOnlyProperty)

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

GetCommentConfigurationSource(IConventionProperty)

收到 ConfigurationSource 專欄評論。

GetComputedColumnSql(IProperty, StoreObjectIdentifier)

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

GetComputedColumnSql(IProperty)

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

GetComputedColumnSql(IReadOnlyProperty, StoreObjectIdentifier)

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

GetComputedColumnSql(IReadOnlyProperty)

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

GetComputedColumnSqlConfigurationSource(IConventionProperty)

取得 ConfigurationSource 計算值的 SQL 運算式。

GetDefaultColumnBaseName(IProperty)

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

GetDefaultColumnBaseName(IReadOnlyProperty)
已淘汰.

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

GetDefaultColumnMappings(IProperty)

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

GetDefaultColumnMappings(IPropertyBase)

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

GetDefaultColumnName(IProperty, StoreObjectIdentifier)

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

GetDefaultColumnName(IProperty)
已淘汰.

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

GetDefaultColumnName(IReadOnlyProperty, StoreObjectIdentifier)

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

GetDefaultColumnName(IReadOnlyProperty)

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

GetDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier)

會取得預設的約束名稱。

GetDefaultConstraintName(IReadOnlyProperty)

會取得預設的約束名稱。

GetDefaultConstraintNameConfigurationSource(IConventionProperty)

回傳預設約束名稱的配置來源。

GetDefaultDefaultConstraintName(IReadOnlyProperty, StoreObjectIdentifier)

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

GetDefaultValue(IProperty, StoreObjectIdentifier)

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

GetDefaultValue(IProperty)

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

GetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier)

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

GetDefaultValue(IReadOnlyProperty)

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

GetDefaultValueConfigurationSource(IConventionProperty)

會得到預設值的 。ConfigurationSource

GetDefaultValueSql(IProperty, StoreObjectIdentifier)

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

GetDefaultValueSql(IProperty)

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

GetDefaultValueSql(IReadOnlyProperty, StoreObjectIdentifier)

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

GetDefaultValueSql(IReadOnlyProperty)

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

GetDefaultValueSqlConfigurationSource(IConventionProperty)

會取得 ConfigurationSource 預設值的 SQL 運算式。

GetDeleteStoredProcedureParameterMappings(IProperty)

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

GetFunctionColumnMappings(IProperty)

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

GetInsertStoredProcedureParameterMappings(IProperty)

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

GetInsertStoredProcedureResultColumnMappings(IProperty)

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

GetIsFixedLengthConfigurationSource(IConventionProperty)

得到 ConfigurationSource 的 IsFixedLength(IReadOnlyProperty)。

GetIsStored(IProperty, StoreObjectIdentifier)

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

GetIsStored(IProperty)

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

GetIsStored(IReadOnlyProperty, StoreObjectIdentifier)

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

GetIsStored(IReadOnlyProperty)

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

GetIsStoredConfigurationSource(IConventionProperty)

取得 ConfigurationSource 計算值的 SQL 運算式。

GetJsonElementMappings(IPropertyBase)

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

GetJsonPropertyName(IReadOnlyProperty)

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

GetJsonPropertyNameConfigurationSource(IConventionProperty)

取得 JSON屬性名稱的 , ConfigurationSource 針對特定實體屬性。

GetMappedStoreObjects(IReadOnlyProperty, StoreObjectType)

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

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

GetMaxLength(IProperty, StoreObjectIdentifier)

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

GetMaxLength(IReadOnlyProperty, StoreObjectIdentifier)

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

GetOrCreateOverrides(IConventionProperty, StoreObjectIdentifier, Boolean)

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

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

GetOrCreateOverrides(IConventionProperty, StoreObjectIdentifier)

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

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

GetOrCreateOverrides(IMutableProperty, StoreObjectIdentifier)

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

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

GetOverrides(IConventionProperty)

回傳所有屬性面覆寫。

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

GetOverrides(IMutableProperty)

回傳所有屬性面覆寫。

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

GetOverrides(IProperty)

回傳所有屬性面覆寫。

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

GetOverrides(IReadOnlyProperty)

回傳所有屬性面覆寫。

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

GetPrecision(IProperty, StoreObjectIdentifier)

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

GetPrecision(IReadOnlyProperty, StoreObjectIdentifier)

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

GetReaderFieldValue(IProperty, RelationalDataReader, Int32, Boolean)

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

GetRelationalTypeMapping(IProperty)

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

GetRelationalTypeMapping(IReadOnlyProperty)

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

GetScale(IProperty, StoreObjectIdentifier)

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

GetScale(IReadOnlyProperty, StoreObjectIdentifier)

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

GetSqlQueryColumnMappings(IProperty)

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

GetTableColumnMappings(IProperty)

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

GetTableColumnMappings(IPropertyBase)

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

GetUpdateStoredProcedureParameterMappings(IProperty)

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

GetUpdateStoredProcedureResultColumnMappings(IProperty)

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

GetViewColumnMappings(IProperty)

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

GetViewColumnMappings(IPropertyBase)

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

IsColumnNullable(IProperty, StoreObjectIdentifier)

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

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

IsColumnNullable(IProperty)

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

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

IsColumnNullable(IReadOnlyProperty, StoreObjectIdentifier)

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

IsColumnNullable(IReadOnlyProperty)

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

IsFixedLength(IProperty, StoreObjectIdentifier)

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

IsFixedLength(IProperty)

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

IsFixedLength(IReadOnlyProperty, StoreObjectIdentifier)

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

IsFixedLength(IReadOnlyProperty)

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

IsUnicode(IProperty, StoreObjectIdentifier)

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

IsUnicode(IReadOnlyProperty, StoreObjectIdentifier)

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

RemoveOverrides(IConventionProperty, StoreObjectIdentifier)

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

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

RemoveOverrides(IMutableProperty, StoreObjectIdentifier)

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

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

SetCollation(IConventionProperty, String, Boolean)

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

SetCollation(IMutableProperty, String)

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

SetColumnName(IConventionProperty, String, Boolean)

設定屬性映射到的欄位。

SetColumnName(IConventionProperty, String, StoreObjectIdentifier, Boolean)

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

SetColumnName(IMutableProperty, String, StoreObjectIdentifier)

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

SetColumnName(IMutableProperty, String)

設定屬性映射到的欄位。

SetColumnOrder(IConventionProperty, Nullable<Int32>, Boolean)

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

SetColumnOrder(IMutableProperty, Nullable<Int32>)

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

SetColumnType(IConventionProperty, String, Boolean)

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

SetColumnType(IMutableProperty, String)

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

SetComment(IConventionProperty, String, Boolean)

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

SetComment(IMutableProperty, String)

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

SetComputedColumnSql(IConventionProperty, String, Boolean)

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

SetComputedColumnSql(IMutableProperty, String)

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

SetDefaultConstraintName(IConventionProperty, String, Boolean)

設定預設的約束名稱。

SetDefaultConstraintName(IMutableProperty, String)

設定預設的約束名稱。

SetDefaultValue(IConventionProperty, Object, Boolean)

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

SetDefaultValue(IMutableProperty, Object)

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

SetDefaultValueSql(IConventionProperty, String, Boolean)

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

SetDefaultValueSql(IMutableProperty, String)

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

SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)

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

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

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

SetIsStored(IConventionProperty, Nullable<Boolean>, Boolean)

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

SetIsStored(IMutableProperty, Nullable<Boolean>)

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

SetJsonPropertyName(IConventionProperty, String, Boolean)

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

SetJsonPropertyName(IMutableProperty, String)

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

TryGetDefaultValue(IReadOnlyProperty, Object)

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

TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)

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

適用於