C# Класс CSMongo.MongoDocument

A document to use for storage with a MongoDatabase
Наследование: CSMongo.Bson.BsonDocument
Показать файл Открыть проект

Открытые методы

Метод Описание
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