MetaTable Class

MetaTable Class

 

Represents the metadata that describes a table for use by Dynamic Data pages.

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

System.Object
  System.Web.DynamicData.MetaTable

public class MetaTable

NameDescription
System_CAPS_pubmethodMetaTable(MetaModel, TableProvider)

Initializes a new instance of the MetaTable class.

NameDescription
System_CAPS_pubpropertyAttributes

Gets the attributes that are associated with the table.

System_CAPS_pubpropertyColumns

Gets the column collection for the table.

System_CAPS_pubpropertyDataContextPropertyName

Gets the name of the table.

System_CAPS_pubpropertyDataContextType

Gets the type of the data context that is associated with the table.

System_CAPS_pubpropertyDisplayColumn

Gets the column that is used to display values when entries in this table are used as parents in foreign-key relationships.

System_CAPS_pubpropertyDisplayName

Gets the name of the table in a user-friendly format.

System_CAPS_pubpropertyEntityType

Gets the entity type that represents the table.

System_CAPS_pubpropertyForeignKeyColumnsNames

Gets a comma-separated list of foreign-key names.

System_CAPS_pubpropertyHasPrimaryKey

Gets a value that indicates whether the table has a primary key.

System_CAPS_pubpropertyIsReadOnly

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

System_CAPS_pubpropertyListActionPath

Gets the action path of the list action for the table.

System_CAPS_pubpropertyModel

Gets the meta model that the table belongs to.

System_CAPS_pubpropertyName

Gets the unique name of the table.

System_CAPS_pubpropertyPrimaryKeyColumns

Gets the collection of columns that define the primary key.

System_CAPS_pubpropertyProvider

Gets the provider for the table.

System_CAPS_pubpropertyRootEntityType

Gets the root type of the entity's inheritance hierarchy.

System_CAPS_pubpropertyScaffold

Gets or sets a value that indicates whether the table should be displayed.

System_CAPS_pubpropertySortColumn

Gets the MetaColumn value that the table is sorted by.

System_CAPS_pubpropertySortDescending

Gets a value that indicates whether entries are sorted in descending order when they are used as parents in a foreign-key relationship.

NameDescription
System_CAPS_protmethodBuildAttributeCollection()

Creates the attribute collection.

System_CAPS_pubmethodCanDelete(IPrincipal)

Gets a value that indicates whether the specified user is allowed to perform delete operations.

System_CAPS_pubmethodCanInsert(IPrincipal)

Gets a value that indicates whether the specified user is allowed to perform insert operations.

System_CAPS_pubmethodCanRead(IPrincipal)

Gets a value that indicates whether the specified user is allowed to perform read operations.

System_CAPS_pubmethodCanUpdate(IPrincipal)

Gets a value that indicates whether the specified user is allowed to perform update operations.

System_CAPS_protmethodCreateChildrenColumn(ColumnProvider)

Creates a new MetaChildrenColumn object.

System_CAPS_protmethodCreateColumn(ColumnProvider)

Creates a MetaColumn object.

System_CAPS_pubmethodCreateContext()

Returns the data context for the table.

System_CAPS_protmethodCreateForeignKeyColumn(ColumnProvider)

Creates an object that contains foreign-key metadata.

System_CAPS_pubmethodSystem_CAPS_staticCreateTable(ICustomTypeDescriptor)

Creates the metadata for the specified table.

System_CAPS_pubmethodSystem_CAPS_staticCreateTable(Type)

Creates the metadata for the specified table.

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_pubmethodGetActionPath(String)

Returns the action path for the current table and the specified action.

System_CAPS_pubmethodGetActionPath(String, IList<Object>)

Returns the action path for the current table, specified action, and specified primary key.

System_CAPS_pubmethodGetActionPath(String, IList<Object>, String)

Appends query strings to the action path, based on the specified primary key and virtual path.

System_CAPS_pubmethodGetActionPath(String, Object)

Returns the action path for the specified row by using the name of the action.

System_CAPS_pubmethodGetActionPath(String, Object, String)

Returns the action path for the specified row by using the name of the action and the virtual path of the action.

System_CAPS_pubmethodGetActionPath(String, RouteValueDictionary)

Returns the action path for the current table and for the specified action and routes.

System_CAPS_pubmethodGetColumn(String)

Returns the metadata for the specified column.

System_CAPS_pubmethodGetColumnValuesFromRoute(HttpContext)

Gets the collection of column values.

System_CAPS_pubmethodGetDataKeyFromRoute()

Retrieves the primary key of the entity from the route values.

System_CAPS_pubmethodGetDisplayString(Object)

Returns the value to use as the display string for an instance of a row when the row is used in foreign-key relationships.

System_CAPS_pubmethodGetFilteredColumns()

Retrieves a list of columns that are filterable.

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetPrimaryKeyDictionary(Object)

Retrieves a dictionary of primary-key names and values for the specified row.

System_CAPS_pubmethodGetPrimaryKeyString(IList<Object>)

Returns a comma-separated list of column values that represent the primary key for the specified row.

System_CAPS_pubmethodGetPrimaryKeyString(Object)

Returns a comma-separated list of column values that represent the primary key for the specified row.

System_CAPS_pubmethodGetPrimaryKeyValues(Object)

Returns a collection of column values that represent the primary key for the specified row.

System_CAPS_pubmethodGetQuery()

Returns the System.Linq.IQueryable instance for the entity type that represents the table.

System_CAPS_pubmethodGetQuery(Object)

Returns the System.Linq.IQueryable instance for the entity type that represents the table by using the data context.

System_CAPS_pubmethodGetScaffoldColumns(DataBoundControlMode, ContainerType)

Returns a list of columns to display by using scaffolding.

System_CAPS_pubmethodSystem_CAPS_staticGetTable(Type)

Retrieves the metatable that is associated with the specified type.

System_CAPS_pubmethodGetType()

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

System_CAPS_protmethodInitialize()

Initializes data that may 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()

Resets the cached metadata for the table.

System_CAPS_pubmethodToString()

Returns the name of the table.(Overrides Object.ToString().)

System_CAPS_pubmethodTryGetColumn(String, MetaColumn)

Returns a value that indicates whether a specified column can be found.

System_CAPS_pubmethodSystem_CAPS_staticTryGetTable(Type, MetaTable)

Retrieves the metatable that is associated with the specified type and table.

The following example is part of the code-behind file for the Insert.aspx page template. The MetaTable instance is initialized in the Page_Load method. The title for the page is set to the table DisplayName property.

public partial class Insert : System.Web.UI.Page {
    protected MetaTable table;   

    protected void Page_Load(object sender, EventArgs e) {
        table = DetailsDataSource.GetTable();
        Title = table.DisplayName;
    }
}

.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