C# 클래스 Fluency.IdGenerators.StaticValueIdGenerator

Generates all Ids as the same static value. Use zero for NHibernate classes since NHibernate creates the ids on its own.
상속: IIdGenerator
파일 보기 프로젝트 열기: ChrisEdwards/Fluency

공개 메소드들

메소드 설명
GetNextId ( ) : int

Gets the next Id.

StaticValueIdGenerator ( int staticIdValue )

Initializes a new instance of the StaticValueIdGenerator class.

메소드 상세

GetNextId() 공개 메소드

Gets the next Id.
public GetNextId ( ) : int
리턴 int

StaticValueIdGenerator() 공개 메소드

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