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