C# Class Mdbc.Actor

显示文件 Open project: nightroman/Mdbc

Public Methods

Method Description
AsEnumerable ( object value ) : IEnumerable
BaseObject ( object value ) : object
BaseObject ( object value, System.Management.Automation.PSObject &custom ) : object
ObjectToBsonDocuments ( object value ) : IEnumerable
ObjectToQuery ( object value ) : IMongoQuery
ObjectToUpdate ( object value, Action error ) : IMongoUpdate
ObjectsToFields ( IList values ) : IMongoFields
ObjectsToSortBy ( IEnumerable values ) : IMongoSortBy

Converts PS objects to a SortBy object.

Register ( ) : void
ToBsonDocument ( BsonDocument source, object value, Mdbc.DocumentInput input, IEnumerable properties ) : BsonDocument
ToBsonDocument ( object value ) : BsonDocument
ToBsonValue ( object value ) : BsonValue
ToEnumerableBsonValue ( object value ) : IEnumerable
ToObject ( BsonValue value ) : object

Private Methods

Method Description
IdToQuery ( object id ) : IMongoQuery
IncSerializationDepth ( int &depth ) : void
ToBsonDocument ( BsonDocument source, object value, Mdbc.DocumentInput input, IEnumerable properties, int depth ) : BsonDocument
ToBsonDocumentFromDictionary ( BsonDocument source, IDictionary dictionary, Mdbc.DocumentInput input, IEnumerable properties, int depth ) : BsonDocument
ToBsonDocumentFromProperties ( BsonDocument source, System.Management.Automation.PSObject value, Mdbc.DocumentInput input, IEnumerable properties, int depth ) : BsonDocument
ToBsonValue ( object value, Mdbc.DocumentInput input, int depth ) : BsonValue

Method Details

AsEnumerable() public static method

public static AsEnumerable ( object value ) : IEnumerable
value object
return IEnumerable

BaseObject() public static method

public static BaseObject ( object value ) : object
value object
return object

BaseObject() public static method

public static BaseObject ( object value, System.Management.Automation.PSObject &custom ) : object
value object
custom System.Management.Automation.PSObject
return object

ObjectToBsonDocuments() public static method

public static ObjectToBsonDocuments ( object value ) : IEnumerable
value object
return IEnumerable

ObjectToQuery() public static method

public static ObjectToQuery ( object value ) : IMongoQuery
value object
return IMongoQuery

ObjectToUpdate() public static method

public static ObjectToUpdate ( object value, Action error ) : IMongoUpdate
value object
error Action
return IMongoUpdate

ObjectsToFields() public static method

public static ObjectsToFields ( IList values ) : IMongoFields
values IList
return IMongoFields

ObjectsToSortBy() public static method

Converts PS objects to a SortBy object.
public static ObjectsToSortBy ( IEnumerable values ) : IMongoSortBy
values IEnumerable Strings or @{Name=Boolean}. Null and empty is allowed.
return IMongoSortBy

Register() public static method

public static Register ( ) : void
return void

ToBsonDocument() public static method

public static ToBsonDocument ( BsonDocument source, object value, Mdbc.DocumentInput input, IEnumerable properties ) : BsonDocument
source BsonDocument
value object
input Mdbc.DocumentInput
properties IEnumerable
return BsonDocument

ToBsonDocument() public static method

public static ToBsonDocument ( object value ) : BsonDocument
value object
return BsonDocument

ToBsonValue() public static method

public static ToBsonValue ( object value ) : BsonValue
value object
return BsonValue

ToEnumerableBsonValue() public static method

public static ToEnumerableBsonValue ( object value ) : IEnumerable
value object
return IEnumerable

ToObject() public static method

public static ToObject ( BsonValue value ) : object
value BsonValue
return object