C# 클래스 CSMongo.MongoDocument

A document to use for storage with a MongoDatabase
상속: CSMongo.Bson.BsonDocument
파일 보기 프로젝트 열기: hugoware/CSMongo

공개 메소드들

메소드 설명
GenerateId ( ) : MongoOid

Creates an Oid for this document - MongoDB will automatically create an Oid when needed

MongoDocument ( ) : System

Creates an empty MongoDocument with a default ID assigned

MongoDocument ( bool generateId ) : System

Creates an empty MongoDocument with a default ID assigned

MongoDocument ( bool generateId, object source ) : System

Creates a MongoDocument using the provided object as a template

MongoDocument ( object source ) : System

Creates an empty MongoDocument with a default ID assigned

ToBsonByteArray ( ) : byte[]

Handles rendering the bytes required to create this type

operator ( ) : MongoDocument

Merges another object with this object - Same as calling Merge

보호된 메소드들

메소드 설명
OnBeforeFinishBsonRender ( IEnumerable fields ) : IEnumerable

Handles reordering so that the Oid is at the start

메소드 상세

GenerateId() 공개 메소드

Creates an Oid for this document - MongoDB will automatically create an Oid when needed
public GenerateId ( ) : MongoOid
리턴 MongoOid

MongoDocument() 공개 메소드

Creates an empty MongoDocument with a default ID assigned
public MongoDocument ( ) : System
리턴 System

MongoDocument() 공개 메소드

Creates an empty MongoDocument with a default ID assigned
public MongoDocument ( bool generateId ) : System
generateId bool
리턴 System

MongoDocument() 공개 메소드

Creates a MongoDocument using the provided object as a template
public MongoDocument ( bool generateId, object source ) : System
generateId bool
source object
리턴 System

MongoDocument() 공개 메소드

Creates an empty MongoDocument with a default ID assigned
public MongoDocument ( object source ) : System
source object
리턴 System

OnBeforeFinishBsonRender() 보호된 메소드

Handles reordering so that the Oid is at the start
protected OnBeforeFinishBsonRender ( IEnumerable fields ) : IEnumerable
fields IEnumerable
리턴 IEnumerable

ToBsonByteArray() 공개 메소드

Handles rendering the bytes required to create this type
public ToBsonByteArray ( ) : byte[]
리턴 byte[]

operator() 공개 정적인 메소드

Merges another object with this object - Same as calling Merge
public static operator ( ) : MongoDocument
리턴 MongoDocument