C# Class Fluency.IdGenerators.StaticValueIdGenerator

Generates all Ids as the same static value. Use zero for NHibernate classes since NHibernate creates the ids on its own.
Inheritance: IIdGenerator
Afficher le fichier Open project: ChrisEdwards/Fluency

Méthodes publiques

Méthode Description
GetNextId ( ) : int

Gets the next Id.

StaticValueIdGenerator ( int staticIdValue )

Initializes a new instance of the StaticValueIdGenerator class.

Method Details

GetNextId() public méthode

Gets the next Id.
public GetNextId ( ) : int
Résultat int

StaticValueIdGenerator() public méthode

Initializes a new instance of the StaticValueIdGenerator class.
public StaticValueIdGenerator ( int staticIdValue )
staticIdValue int The static id value.