NPersistence Reference Guide
Defines the types of primary key generation strategies.

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

Syntax

   
 C# 
public enum GenerationType

Members

MemberValueDescription
TABLE0
Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness.
SEQUENCE1
Indicates that the persistence provider must assign primary keys for the entity using a database sequence.
IDENTITY2
Indicates that the persistence provider must assign primary keys for the entity using a database identity column.
AUTO3
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.

See Also