C# Class Prototype.Platform.Mongo.MongoExtensions

ファイルを表示 Open project: paralect/prototype

Public Properties

Property Type Description
DefaultDateTime System.DateTime

Public Methods

Method Description
GetBool ( this doc, string key, bool defaultValue = false ) : bool
GetBsonArray ( this doc, string key ) : BsonArray
GetBsonDocument ( this doc, string key ) : BsonDocument
GetDateTime ( this doc, string key, System.DateTime defaultValue = default(DateTime) ) : System.DateTime
GetDouble ( this doc, string key, Double defaultValue ) : Double
GetInt ( this doc, string key, Int32 defaultValue ) : Int32
GetInt32 ( this doc, string key, Int32 defaultValue ) : Int32
GetString ( this doc, string key, string defaultValue = "" ) : string

Method Details

GetBool() public static method

public static GetBool ( this doc, string key, bool defaultValue = false ) : bool
doc this
key string
defaultValue bool
return bool

GetBsonArray() public static method

public static GetBsonArray ( this doc, string key ) : BsonArray
doc this
key string
return BsonArray

GetBsonDocument() public static method

public static GetBsonDocument ( this doc, string key ) : BsonDocument
doc this
key string
return BsonDocument

GetDateTime() public static method

public static GetDateTime ( this doc, string key, System.DateTime defaultValue = default(DateTime) ) : System.DateTime
doc this
key string
defaultValue System.DateTime
return System.DateTime

GetDouble() public static method

public static GetDouble ( this doc, string key, Double defaultValue ) : Double
doc this
key string
defaultValue Double
return Double

GetInt() public static method

public static GetInt ( this doc, string key, Int32 defaultValue ) : Int32
doc this
key string
defaultValue System.Int32
return System.Int32

GetInt32() public static method

public static GetInt32 ( this doc, string key, Int32 defaultValue ) : Int32
doc this
key string
defaultValue System.Int32
return System.Int32

GetString() public static method

public static GetString ( this doc, string key, string defaultValue = "" ) : string
doc this
key string
defaultValue string
return string

Property Details

DefaultDateTime public_oe static_oe property

public static DateTime,System DefaultDateTime
return System.DateTime