C# Class CSMongo.MongoDocument

A document to use for storage with a MongoDatabase
Inheritance: CSMongo.Bson.BsonDocument
Afficher le fichier Open project: hugoware/CSMongo

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
OnBeforeFinishBsonRender ( IEnumerable fields ) : IEnumerable

Handles reordering so that the Oid is at the start

Method Details

GenerateId() public méthode

Creates an Oid for this document - MongoDB will automatically create an Oid when needed
public GenerateId ( ) : MongoOid
Résultat MongoOid

MongoDocument() public méthode

Creates an empty MongoDocument with a default ID assigned
public MongoDocument ( ) : System
Résultat System

MongoDocument() public méthode

Creates an empty MongoDocument with a default ID assigned
public MongoDocument ( bool generateId ) : System
generateId bool
Résultat System

MongoDocument() public méthode

Creates a MongoDocument using the provided object as a template
public MongoDocument ( bool generateId, object source ) : System
generateId bool
source object
Résultat System

MongoDocument() public méthode

Creates an empty MongoDocument with a default ID assigned
public MongoDocument ( object source ) : System
source object
Résultat System

OnBeforeFinishBsonRender() protected méthode

Handles reordering so that the Oid is at the start
protected OnBeforeFinishBsonRender ( IEnumerable fields ) : IEnumerable
fields IEnumerable
Résultat IEnumerable

ToBsonByteArray() public méthode

Handles rendering the bytes required to create this type
public ToBsonByteArray ( ) : byte[]
Résultat byte[]

operator() public static méthode

Merges another object with this object - Same as calling Merge
public static operator ( ) : MongoDocument
Résultat MongoDocument