Data Access has been discontinued. Please refer to this page for more information.


This article is relevant to entity models that utilize the deprecated Visual Studio integration of Telerik Data Access. The current documentation of the Data Access framework is available here.

Use this attribute to designate a class as a persistent class that is associated with a database table. Telerik Data Access treats classes that have this attribute as persistent classes. Telerik Data Access supports only single-table mapping. That is because a persistent class must be mapped to exactly one database table, and you cannot map a database table to multiple classes at the same time.

You can use the Name property of the TableAttribute to specify a name for the table, and you can optionally use the SchemaName property to qualify a table name.

If you do not specify a name by using the Name property, the table name is assumed to be the same as the class name.

The following example demonstrates the usage of the TableAttribute attribute.

[Table("Orders", SchemaName = "dbo")]
public class Order
<Table("Orders", SchemaName := "dbo")>
Public Class Order
End Class