C# 클래스 MongoDB.Bson.Serialization.IdGenerators.GuidGenerator

Represents an Id generator for Guids.
상속: IIdGenerator
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver 1 사용 예제들

공개 메소드들

메소드 설명
GenerateId ( object container, object document ) : object

Generates an Id for a document.

GuidGenerator ( ) : System

Initializes a new instance of the GuidGenerator class.

IsEmpty ( object id ) : bool

Tests whether an Id is empty.

메소드 상세

GenerateId() 공개 메소드

Generates an Id for a document.
public GenerateId ( object container, object document ) : object
container object The container of the document (will be a MongoCollection when called from the C# driver).
document object The document.
리턴 object

GuidGenerator() 공개 메소드

Initializes a new instance of the GuidGenerator class.
public GuidGenerator ( ) : System
리턴 System

IsEmpty() 공개 메소드

Tests whether an Id is empty.
public IsEmpty ( object id ) : bool
id object The Id.
리턴 bool