Edit

Share via


TableProvider Class

Definition

Provides the base class for Dynamic Data table providers.

public ref class TableProvider abstract
public abstract class TableProvider
type TableProvider = class
Public MustInherit Class TableProvider
Inheritance
TableProvider

Remarks

Table providers must extend this class. LINQ to SQL classes and the ADO.NET Entity data model are providers that extend this class.

Constructors

TableProvider(DataModelProvider)

Initializes a new instance of the TableProvider class for use by an inherited class instance. This constructor can only be called by an inherited class.

Properties

Attributes

Gets the attributes that are defined for the table that is represented by this provider.

Columns

When overridden in a derived class, gets the collection of columns in this table.

DataContextPropertyName

Gets the name of the table from the data context.

DataModel

Gets the DataModelProvider object.

EntityType

Gets or sets the type that represents the table.

Name

Gets the name of the table.

ParentEntityType

Gets the parent type.

RootEntityType

Gets the root type for this entity.

Methods

CanDelete(IPrincipal)

Gets a value that indicates whether the user is allowed to delete items from the table.

CanInsert(IPrincipal)

Gets a value that indicates whether the user is allowed to insert items into the table.

CanRead(IPrincipal)

Gets a value that indicates whether the user is allowed to read items in the table.

CanUpdate(IPrincipal)

Gets a value that indicates whether the user is allowed to update items in the table.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
EvaluateForeignKey(Object, String)

Returns the value of a foreign key for the specified row.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetQuery(Object)

When overridden in a derived class, returns the IQueryable object that in turn returns the elements of the table.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetTypeDescriptor()

Gets the type descriptor for the table.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns the Name property of the TableProvider instance.

Applies to