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
Exibir arquivo Open project: ChrisEdwards/Fluency

Public Methods

Method Description
GetNextId ( ) : int

Gets the next Id.

StaticValueIdGenerator ( int staticIdValue )

Initializes a new instance of the StaticValueIdGenerator class.

Method Details

GetNextId() public method

Gets the next Id.
public GetNextId ( ) : int
return int

StaticValueIdGenerator() public method

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