MetaColumn Class
Collapse the table of content
Expand the table of content

MetaColumn Class

 

Represents a database column that is used by Dynamic Data.

Namespace:   System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)


public class MetaColumn : IFieldFormattingOptions

NameDescription
System_CAPS_pubmethodMetaColumn(MetaTable, ColumnProvider)

Initializes a new instance of the MetaColumn class.

NameDescription
System_CAPS_pubpropertyAllowInitialValue

Gets or sets a value that specifies whether a column enables a value to be inserted.

System_CAPS_pubpropertyApplyFormatInEditMode

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.

System_CAPS_pubpropertyAttributes

Gets the collection of metadata attributes that apply to the data field represented by the MetaColumn object.

System_CAPS_pubpropertyColumnType

Gets the data field type.

System_CAPS_pubpropertyConvertEmptyStringToNull

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.

System_CAPS_pubpropertyDataFormatString

Gets the string that specifies the display format for the field value.

System_CAPS_pubpropertyDataTypeAttribute

Gets the DataTypeAttribute attribute that is applied to the data field.

System_CAPS_pubpropertyDefaultValue

Gets the default value for the data field.

System_CAPS_pubpropertyDescription

Gets the description for the data field.

System_CAPS_pubpropertyDisplayName

Gets the display name for the data field.

System_CAPS_pubpropertyEntityTypeProperty

Gets an object that contains attributes of the property that represents the data field in the entity type.

System_CAPS_pubpropertyFilterUIHint

Gets the FilterUIHint value that is used for the column.

System_CAPS_pubpropertyHtmlEncode

Gets a value that indicates whether field values are HTML-encoded before they are displayed in a data-bound control.

System_CAPS_pubpropertyIsBinaryData

Gets a value that indicates whether the data field contains binary data.

System_CAPS_pubpropertyIsCustomProperty

Gets a value that indicates whether the data field exists in the database.

System_CAPS_pubpropertyIsFloatingPoint

Gets a value that indicates whether the data field is a floating-point type.

System_CAPS_pubpropertyIsForeignKeyComponent

Gets a value that indicates whether the data field is part of a foreign key.

System_CAPS_pubpropertyIsGenerated

Gets a value that indicates whether the data field value is automatically generated in the database.

System_CAPS_pubpropertyIsInteger

Gets a value that indicates whether the data field type is an integer type.

System_CAPS_pubpropertyIsLongString

Gets a value that indicates whether the data field type can contain long strings.

System_CAPS_pubpropertyIsPrimaryKey

Gets a value that indicates whether the data field is part of the table's primary key.

System_CAPS_pubpropertyIsReadOnly

Gets a value that indicates whether the data field is read-only.

System_CAPS_pubpropertyIsRequired

Gets a value that indicates whether the data field requires a value.

System_CAPS_pubpropertyIsString

Gets a value that indicates whether the data field type is a string type.

System_CAPS_pubpropertyMaxLength

Gets a value that indicates the maximum length of data that can be stored in the data field.

System_CAPS_pubpropertyModel

Gets the MetaModel object that represents the data model that this data field belongs to.

System_CAPS_pubpropertyName

Gets the name of the data field.

System_CAPS_pubpropertyNullDisplayText

Gets the caption that is displayed for a field when the field's value is null.

System_CAPS_pubpropertyPrompt

Gets a value that can be used as a watermark in the UI that is bound to data in the column.

System_CAPS_pubpropertyProvider

Gets the abstraction provider object that is used to generate the MetaColumn object.

System_CAPS_pubpropertyRequiredErrorMessage

Gets the error message that is displayed when the data field requires a value but its value is empty.

System_CAPS_pubpropertyScaffold

Gets a value that indicates whether the data field should be displayed.

System_CAPS_pubpropertyShortDisplayName

Gets the short name for the column.

System_CAPS_pubpropertySortExpression

Gets the expression that is used to determine the sort order for the data field.

System_CAPS_pubpropertyTable

Gets the MetaTable object that represents the table that the data field belongs to.

System_CAPS_pubpropertyTypeCode

Gets the type of the data field.

System_CAPS_pubpropertyUIHint

Gets the name of the field template specified for the data field.

NameDescription
System_CAPS_protmethodBuildAttributeCollection()

Gets the attribute collection.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodInitialize()

Initializes data that might not be available when the constructor is called.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodResetMetadata()

Clears cached column metadata.

System_CAPS_pubmethodToString()

Gets the data field name.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubmethodConvertEditedValue(String)

Returns the value provided by a user for a control that is being validated.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodFormatEditValue(Object)

Formats the specified field value by using the specified formatting options.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodFormatValue(Object)

Formats the specified field value by using the specified formatting options.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodGetEnumType()

Gets the type of the enumeration that represents the column.(Defined by DynamicDataExtensions.)

In ASP.NET Dynamic Data applications, the MetaColumn class represents a database field. The MetaColumn class lets you retrieve information about the data field such as type and metadata information.

You can retrieve the table that the data field belongs to by using the Table property. You can also retrieve the data model by using the Model property.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft