NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Defines the types of primary key generation strategies.
Namespace: NPersistenceAssembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
public enum GenerationType
Members
Member | Value | Description |
---|---|---|
TABLE | 0 | Indicates that the persistence provider must assign
primary keys for the entity using an underlying
database table to ensure uniqueness.
|
SEQUENCE | 1 | Indicates that the persistence provider must assign
primary keys for the entity using a database sequence.
|
IDENTITY | 2 | Indicates that the persistence provider must assign
primary keys for the entity using a database identity column.
|
AUTO | 3 | Indicates that the persistence provider should pick an
appropriate strategy for the particular database. The
AUTO generation strategy may expect a database
resource to exist, or it may attempt to create one. A vendor
may provide documentation on how to create such resources
in the event that it does not support schema generation
or cannot create the schema resource at runtime.
|