NPersistence Reference Guide
Specifies the primary table for the annotated entity.

Additional tables may be specified using SecondaryTable annotation.

If no Table annotation is specified for an entity class, the default values apply.

Examples

CopyC#
Example:

[Entity]
[Table(name="CUST", schema="RECORDS")]
public class Customer { ... }

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
public sealed class Table : Attribute

Members

         
 All Members  Constructors   Fields  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Table()()()()
Initializes a new instance of the Table class
Catalog
(Optional) The catalog of the table. Defaults to the default catalog
Name
(Optional) The name of the table. Defaults to the entity name
Schema
(Optional) The schema of the table. Defaults to the default schema for user

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    NPersistence..::..Table

See Also