MetaForeignKeyColumn MetaForeignKeyColumn MetaForeignKeyColumn MetaForeignKeyColumn Class

定義

表示 ASP.NET Dynamic Data 所使用的資料庫外部索引鍵欄位。Represents a database foreign-key field that is used by ASP.NET Dynamic Data.

public ref class MetaForeignKeyColumn : System::Web::DynamicData::MetaColumn
public class MetaForeignKeyColumn : System.Web.DynamicData.MetaColumn
type MetaForeignKeyColumn = class
    inherit MetaColumn
Public Class MetaForeignKeyColumn
Inherits MetaColumn
繼承
MetaForeignKeyColumnMetaForeignKeyColumnMetaForeignKeyColumnMetaForeignKeyColumn

備註

ASP.NET 動態資料應用程式中,MetaForeignKeyColumn類別代表表示一對一關聯性的資料庫資料行。In ASP.NET Dynamic Data applications, the MetaForeignKeyColumn class represents a database column that denotes a one-to-one relationship.

MetaForeignKeyColumn類別代表包含外部索引鍵欄位的資料表中的資料行。The MetaForeignKeyColumn class represents the column in the table that contains the foreign-key field. 不過,您可以藉由存取父資料表物件ParentTable屬性。However, you can access the parent table object by using the ParentTable property. 您可以判斷的外部索引鍵欄位是否包含所使用的資料表中主索引鍵IsPrimaryKeyInThisTable屬性。You can determine if the foreign-key field is a primary key in the table that contains it by using the IsPrimaryKeyInThisTable property.

建構函式

MetaForeignKeyColumn(MetaTable, ColumnProvider) MetaForeignKeyColumn(MetaTable, ColumnProvider) MetaForeignKeyColumn(MetaTable, ColumnProvider) MetaForeignKeyColumn(MetaTable, ColumnProvider)

初始化 MetaForeignKeyColumn 類別的新執行個體。Initializes a new instance of the MetaForeignKeyColumn class.

屬性

AllowInitialValue AllowInitialValue AllowInitialValue AllowInitialValue

取得或設定值,這個值指定是否允許將值插入至資料行。Gets or sets a value that specifies whether a column enables a value to be inserted.

(Inherited from MetaColumn)
ApplyFormatInEditMode ApplyFormatInEditMode ApplyFormatInEditMode ApplyFormatInEditMode

取得值,這個值表示當資料繫結控制項 (其中含有 DataFormatString 物件所表示的資料欄位) 處於編輯模式時,MetaColumn 屬性指定的格式化字串是否套用至欄位值。Gets a value that indicates whether the formatting string specified by the DataFormatString property is applied to field values when the data-bound control that contains the data field that is represented by the MetaColumn object is in edit mode.

(Inherited from MetaColumn)
Attributes Attributes Attributes Attributes

取得套用至 MetaColumn 物件所表示之資料欄位的中繼資料屬性集合。Gets the collection of metadata attributes that apply to the data field represented by the MetaColumn object.

(Inherited from MetaColumn)
ColumnType ColumnType ColumnType ColumnType

取得資料欄位型別。Gets the data field type.

(Inherited from MetaColumn)
ConvertEmptyStringToNull ConvertEmptyStringToNull ConvertEmptyStringToNull ConvertEmptyStringToNull

取得值,表示在資料來源中更新資料欄位時,是否將空字串值 ("") 自動轉換為 null 值。Gets a value that indicates whether empty string values ("") are automatically converted to null values when the data field is updated in the data source.

(Inherited from MetaColumn)
DataFormatString DataFormatString DataFormatString DataFormatString

取得字串,這個字串指定欄位值的顯示格式。Gets the string that specifies the display format for the field value.

(Inherited from MetaColumn)
DataTypeAttribute DataTypeAttribute DataTypeAttribute DataTypeAttribute

取得套用至資料欄位的 DataTypeAttribute 屬性。Gets the DataTypeAttribute attribute that is applied to the data field.

(Inherited from MetaColumn)
DefaultValue DefaultValue DefaultValue DefaultValue

取得資料欄位的預設值。Gets the default value for the data field.

(Inherited from MetaColumn)
Description Description Description Description

取得資料欄位的描述。Gets the description for the data field.

(Inherited from MetaColumn)
DisplayName DisplayName DisplayName DisplayName

取得資料欄位的顯示名稱。Gets the display name for the data field.

(Inherited from MetaColumn)
EntityTypeProperty EntityTypeProperty EntityTypeProperty EntityTypeProperty

取得物件,這個物件包含以實體 (Entity) 型別表示資料欄位之屬性 (Property) 的屬性 (Attribute)。Gets an object that contains attributes of the property that represents the data field in the entity type.

(Inherited from MetaColumn)
FilterUIHint FilterUIHint FilterUIHint FilterUIHint

取得用於資料行的 FilterUIHint 值。Gets the FilterUIHint value that is used for the column.

(Inherited from MetaColumn)
ForeignKeyNames ForeignKeyNames ForeignKeyNames ForeignKeyNames

取得表示資料庫關聯性的關聯中包含外部索引鍵名稱的集合。Gets a collection that contains the names of the foreign keys in the association that represents a database relationship.

HtmlEncode HtmlEncode HtmlEncode HtmlEncode

取得值,這個值表示欄位值在資料繫結控制項中顯示之前是否進行 HTML 編碼。Gets a value that indicates whether field values are HTML-encoded before they are displayed in a data-bound control.

(Inherited from MetaColumn)
IsBinaryData IsBinaryData IsBinaryData IsBinaryData

取得值,這個值表示資料欄位是否包含二進位資料。Gets a value that indicates whether the data field contains binary data.

(Inherited from MetaColumn)
IsCustomProperty IsCustomProperty IsCustomProperty IsCustomProperty

取得值,這個值表示資料欄位是否存在於資料庫中。Gets a value that indicates whether the data field exists in the database.

(Inherited from MetaColumn)
IsFloatingPoint IsFloatingPoint IsFloatingPoint IsFloatingPoint

取得值,這個值表示資料欄位是否是浮點數型別。Gets a value that indicates whether the data field is a floating-point type.

(Inherited from MetaColumn)
IsForeignKeyComponent IsForeignKeyComponent IsForeignKeyComponent IsForeignKeyComponent

取得值,這個值表示資料欄位是否屬於外部索引鍵。Gets a value that indicates whether the data field is part of a foreign key.

(Inherited from MetaColumn)
IsGenerated IsGenerated IsGenerated IsGenerated

取得值,這個值表示資料欄位值是否在資料庫中自動產生。Gets a value that indicates whether the data field value is automatically generated in the database.

(Inherited from MetaColumn)
IsInteger IsInteger IsInteger IsInteger

取得值,這個值表示資料欄位型別是否是整數型別 (Integer Type)。Gets a value that indicates whether the data field type is an integer type.

(Inherited from MetaColumn)
IsLongString IsLongString IsLongString IsLongString

取得值,這個值表示資料欄位型別是否可包含長字串。Gets a value that indicates whether the data field type can contain long strings.

(Inherited from MetaColumn)
IsPrimaryKey IsPrimaryKey IsPrimaryKey IsPrimaryKey

取得值,這個值表示資料欄位是否屬於資料表的主索引鍵。Gets a value that indicates whether the data field is part of the table's primary key.

(Inherited from MetaColumn)
IsPrimaryKeyInThisTable IsPrimaryKeyInThisTable IsPrimaryKeyInThisTable IsPrimaryKeyInThisTable

取得值,這個值表示外部索引鍵欄位是否屬於資料表的主索引鍵。Gets a value that indicates whether the foreign-key field is part of the primary key of the table.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

取得值,這個值表示資料欄位是否為唯讀。Gets a value that indicates whether the data field is read-only.

(Inherited from MetaColumn)
IsRequired IsRequired IsRequired IsRequired

取得值,這個值表示資料欄位是否需要值。Gets a value that indicates whether the data field requires a value.

(Inherited from MetaColumn)
IsString IsString IsString IsString

取得值,這個值表示資料欄位型別是否是字串型別 (String Type)。Gets a value that indicates whether the data field type is a string type.

(Inherited from MetaColumn)
MaxLength MaxLength MaxLength MaxLength

取得值,這個值表示可在資料欄位中儲存的最大資料長度。Gets a value that indicates the maximum length of data that can be stored in the data field.

(Inherited from MetaColumn)
Model Model Model Model

取得 MetaModel 物件,這個物件表示此資料欄位所屬的資料模型。Gets the MetaModel object that represents the data model that this data field belongs to.

(Inherited from MetaColumn)
Name Name Name Name

取得資料欄位的名稱。Gets the name of the data field.

(Inherited from MetaColumn)
NullDisplayText NullDisplayText NullDisplayText NullDisplayText

取得欄位值為 null 時該欄位所顯示的標題。Gets the caption that is displayed for a field when the field's value is null.

(Inherited from MetaColumn)
ParentTable ParentTable ParentTable ParentTable

取得外部索引鍵欄位的父資料表。Gets the parent table of the foreign-key field.

Prompt Prompt Prompt Prompt

取得值,這個值可在繫結至資料行之資料的 UI 中用來做為浮水印。Gets a value that can be used as a watermark in the UI that is bound to data in the column.

(Inherited from MetaColumn)
Provider Provider Provider Provider

取得用來產生 MetaColumn 物件的抽象提供者 (Provider) 物件。Gets the abstraction provider object that is used to generate the MetaColumn object.

(Inherited from MetaColumn)
RequiredErrorMessage RequiredErrorMessage RequiredErrorMessage RequiredErrorMessage

取得資料欄位需要值但其值為空時顯示的錯誤訊息。Gets the error message that is displayed when the data field requires a value but its value is empty.

(Inherited from MetaColumn)
Scaffold Scaffold Scaffold Scaffold

取得值,這個值表示是否應該顯示資料欄位。Gets a value that indicates whether the data field should be displayed.

(Inherited from MetaColumn)
ShortDisplayName ShortDisplayName ShortDisplayName ShortDisplayName

取得資料行的簡短名稱。Gets the short name for the column.

(Inherited from MetaColumn)
SortExpression SortExpression SortExpression SortExpression

取得用來決定資料欄位排序次序的運算式。Gets the expression that is used to determine the sort order for the data field.

(Inherited from MetaColumn)
Table Table Table Table

取得 MetaTable 物件,這個物件表示資料欄位所屬的資料表。Gets the MetaTable object that represents the table that the data field belongs to.

(Inherited from MetaColumn)
TypeCode TypeCode TypeCode TypeCode

取得資料欄位的型別。Gets the type of the data field.

(Inherited from MetaColumn)
UIHint UIHint UIHint UIHint

取得為資料欄位指定的欄位樣板名稱。Gets the name of the field template specified for the data field.

(Inherited from MetaColumn)

方法

BuildAttributeCollection() BuildAttributeCollection() BuildAttributeCollection() BuildAttributeCollection()

取得屬性集合。Gets the attribute collection.

(Inherited from MetaColumn)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExtractForeignKey(IDictionary, String) ExtractForeignKey(IDictionary, String) ExtractForeignKey(IDictionary, String) ExtractForeignKey(IDictionary, String)

在指定的字典中儲存外部索引鍵的值。Saves the value of a foreign key in the specified dictionary.

GetFilterExpression(String) GetFilterExpression(String) GetFilterExpression(String) GetFilterExpression(String)

傳回對應至外部索引鍵的替代名稱。Returns the alternate name that is mapped to a foreign key.

GetForeignKeyDetailsPath(Object) GetForeignKeyDetailsPath(Object) GetForeignKeyDetailsPath(Object) GetForeignKeyDetailsPath(Object)

取得詳細資料動作頁面的路徑,這個頁面屬於指定之外部索引鍵欄位的父資料表。Gets the path for the details action page of the parent table of the specified foreign-key field.

GetForeignKeyPath(String, Object) GetForeignKeyPath(String, Object) GetForeignKeyPath(String, Object) GetForeignKeyPath(String, Object)

取得指定之動作頁面的路徑,這個頁面屬於指定之外部索引鍵欄位的父資料表。Gets the path for the specified action page of the parent table of the specified foreign-key field.

GetForeignKeyPath(String, Object, String) GetForeignKeyPath(String, Object, String) GetForeignKeyPath(String, Object, String) GetForeignKeyPath(String, Object, String)

取得指定之動作頁面的路徑,這個頁面屬於指定之外部索引鍵欄位的父資料表。Gets the path for the specified action page of the parent table of the specified foreign-key field.

GetForeignKeyString(Object) GetForeignKeyString(Object) GetForeignKeyString(Object) GetForeignKeyString(Object)

傳回值的逗號分隔清單,這些值表示指定之資料列的外部索引鍵。Retrieves a comma-separated list of values that represent the foreign-key for the specified row.

GetForeignKeyValues(Object) GetForeignKeyValues(Object) GetForeignKeyValues(Object) GetForeignKeyValues(Object)

擷取值的集合,這些值表示指定之資料列的外部索引鍵。Retrieves a collection of values that represent the foreign keys for the specified row.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
Initialize() Initialize() Initialize() Initialize()

初始化呼叫建構函式時可能無法使用的資料。Initializes data that may not be available when the constructor is called.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ResetMetadata() ResetMetadata() ResetMetadata() ResetMetadata()

清除快取的資料行中繼資料。Clears cached column metadata.

(Inherited from MetaColumn)
ToString() ToString() ToString() ToString()

取得資料欄位名稱。Gets the data field name.

(Inherited from MetaColumn)

擴充方法

ConvertEditedValue(IFieldFormattingOptions, String) ConvertEditedValue(IFieldFormattingOptions, String) ConvertEditedValue(IFieldFormattingOptions, String) ConvertEditedValue(IFieldFormattingOptions, String)

針對已驗證的控制項傳回使用者提供的值。Returns the value provided by a user for a control that is being validated.

FormatEditValue(IFieldFormattingOptions, Object) FormatEditValue(IFieldFormattingOptions, Object) FormatEditValue(IFieldFormattingOptions, Object) FormatEditValue(IFieldFormattingOptions, Object)

以指定的格式化選項來進行格式化指定的欄位值。Formats the specified field value by using the specified formatting options.

FormatValue(IFieldFormattingOptions, Object) FormatValue(IFieldFormattingOptions, Object) FormatValue(IFieldFormattingOptions, Object) FormatValue(IFieldFormattingOptions, Object)

以指定的格式化選項來進行格式化指定的欄位值。Formats the specified field value by using the specified formatting options.

GetEnumType(MetaColumn) GetEnumType(MetaColumn) GetEnumType(MetaColumn) GetEnumType(MetaColumn)

取得表示資料行的列舉型別。Gets the type of the enumeration that represents the column.

適用於

另請參閱