C# Class MongoUtility.Command.CommandExecute

Mostrar archivo Open project: magicdict/MongoCola Class Usage Examples

Public Properties

Property Type Description
RunCommandComplete EventHandler

Public Methods

Method Description
ExecuteJsShell ( string jsShell, MongoServer mongoSvr ) : CommandResult

使用Shell Helper命令

ExecuteMongoColCommand ( CommandDocument cmdDoc, MongoCollection mongoCol ) : CommandResult

执行数据集命令

ExecuteMongoColCommand ( string commandString, MongoCollection mongoCol ) : CommandResult

执行数据集命令

ExecuteMongoColCommand ( string command, MongoCollection mongoCol, BsonDocument extendInfo ) : CommandResult

数据集命令

ExecuteMongoCommand ( MongoCommand mMongoCommand ) : CommandResult

当前对象的MONGO命令

ExecuteMongoDBCommand ( CommandDocument mongoCmd, IMongoDatabase mongoDb ) : CommandResult

ExecuteMongoDBCommand ( CommandDocument mongoCmd, MongoDatabase mongoDb ) : CommandResult

执行数据库命令

ExecuteMongoDBCommand ( MongoCommand mMongoCommand, MongoDatabase mongoDb ) : CommandResult

在指定数据库执行指定命令

ExecuteMongoDBCommand ( string mongoCmd, MongoDatabase mongoDb ) : CommandResult

执行数据库命令

ExecuteMongoSvrCommand ( CommandDocument mCommandDocument, MongoServer mongoSvr ) : CommandResult

执行MongoCommand

ExecuteMongoSvrCommand ( MongoCommand mMongoCommand, MongoServer mongosrv ) : CommandResult

在指定服务器上执行指定命令

ExecuteMongoSvrCommand ( string mongoCmd, MongoServer mongoSvr ) : CommandResult

执行MongoCommand

IsShellOk ( CommandResult result ) : bool

Js Shell 的结果判定

OnCommandRunComplete ( MongoUtility.EventArgs.RunCommandEventArgs e ) : void

Command Complete

Method Details

ExecuteJsShell() public static method

使用Shell Helper命令
public static ExecuteJsShell ( string jsShell, MongoServer mongoSvr ) : CommandResult
jsShell string
mongoSvr MongoServer
return MongoDB.Driver.CommandResult

ExecuteMongoColCommand() public static method

执行数据集命令
public static ExecuteMongoColCommand ( CommandDocument cmdDoc, MongoCollection mongoCol ) : CommandResult
cmdDoc MongoDB.Driver.CommandDocument
mongoCol MongoCollection
return MongoDB.Driver.CommandResult

ExecuteMongoColCommand() public static method

执行数据集命令
public static ExecuteMongoColCommand ( string commandString, MongoCollection mongoCol ) : CommandResult
commandString string
mongoCol MongoCollection
return MongoDB.Driver.CommandResult

ExecuteMongoColCommand() public static method

数据集命令
public static ExecuteMongoColCommand ( string command, MongoCollection mongoCol, BsonDocument extendInfo ) : CommandResult
command string 命令关键字
mongoCol MongoCollection 数据集
extendInfo BsonDocument 命令参数
return MongoDB.Driver.CommandResult

ExecuteMongoCommand() public static method

当前对象的MONGO命令
public static ExecuteMongoCommand ( MongoCommand mMongoCommand ) : CommandResult
mMongoCommand MongoCommand 命令对象
return MongoDB.Driver.CommandResult

ExecuteMongoDBCommand() public static method

public static ExecuteMongoDBCommand ( CommandDocument mongoCmd, IMongoDatabase mongoDb ) : CommandResult
mongoCmd MongoDB.Driver.CommandDocument
mongoDb IMongoDatabase
return MongoDB.Driver.CommandResult

ExecuteMongoDBCommand() public static method

执行数据库命令
public static ExecuteMongoDBCommand ( CommandDocument mongoCmd, MongoDatabase mongoDb ) : CommandResult
mongoCmd MongoDB.Driver.CommandDocument
mongoDb MongoDatabase
return MongoDB.Driver.CommandResult

ExecuteMongoDBCommand() public static method

在指定数据库执行指定命令
public static ExecuteMongoDBCommand ( MongoCommand mMongoCommand, MongoDatabase mongoDb ) : CommandResult
mMongoCommand MongoCommand
mongoDb MongoDatabase
return MongoDB.Driver.CommandResult

ExecuteMongoDBCommand() public static method

执行数据库命令
public static ExecuteMongoDBCommand ( string mongoCmd, MongoDatabase mongoDb ) : CommandResult
mongoCmd string
mongoDb MongoDatabase
return MongoDB.Driver.CommandResult

ExecuteMongoSvrCommand() public static method

执行MongoCommand
public static ExecuteMongoSvrCommand ( CommandDocument mCommandDocument, MongoServer mongoSvr ) : CommandResult
mCommandDocument MongoDB.Driver.CommandDocument 命令Doc
mongoSvr MongoServer 目标服务器
return MongoDB.Driver.CommandResult

ExecuteMongoSvrCommand() public static method

在指定服务器上执行指定命令
public static ExecuteMongoSvrCommand ( MongoCommand mMongoCommand, MongoServer mongosrv ) : CommandResult
mMongoCommand MongoCommand
mongosrv MongoServer
return MongoDB.Driver.CommandResult

ExecuteMongoSvrCommand() public static method

执行MongoCommand
public static ExecuteMongoSvrCommand ( string mongoCmd, MongoServer mongoSvr ) : CommandResult
mongoCmd string 命令Command
mongoSvr MongoServer 目标服务器
return MongoDB.Driver.CommandResult

IsShellOk() public static method

Js Shell 的结果判定
public static IsShellOk ( CommandResult result ) : bool
result MongoDB.Driver.CommandResult
return bool

OnCommandRunComplete() public static method

Command Complete
public static OnCommandRunComplete ( MongoUtility.EventArgs.RunCommandEventArgs e ) : void
e MongoUtility.EventArgs.RunCommandEventArgs
return void

Property Details

RunCommandComplete public_oe static_oe property

Command Complete Event
public static EventHandler RunCommandComplete
return EventHandler