示例#1
0
 public void AddParamWithValue(string parameterName, object value)
 {
     BsonDocument document = Queries[0].Document;
     CommandParameter parameter = new CommandParameter(ref document, parameterName, value);
     Parameters.Add(parameterName, parameter);
 }
示例#2
0
 public void AddParam(string parameterName)
 {
     BsonDocument document = Queries[0].Document;
     CommandParameter parameter = new CommandParameter(ref document, parameterName);
     Parameters.Add(parameterName, parameter);
 }