NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Specifies the primary table for the annotated entity.
Namespace: NPersistenceAdditional 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 { ... }
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 |
Member | Description | |
---|---|---|
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
System..::..Attribute
NPersistence..::..Table