示例#1
0
 public int Execute(IDbConnection connection, CommandType commandType = CommandType.Text, SpryParameters parameters = null)
 {
     Parameters.Add(parameters);
     return(new SqlExecutor(Build()).Execute(connection, commandType, Parameters));
 }
示例#2
0
文件: Where.cs 项目: vigneshmsft/Spry
 public TTable EqualTo(TProperty value)
 {
     _parameters.Add(_columnParameterName, value);
     _whereBuilder.AppendFormat(@"{0} = @{1}", _columnName, _columnParameterName);
     return(_table);
 }
示例#3
0
 private void InsertValueImpl(string columnName, object value)
 {
     _parameters.Add(columnName, value);
     _insertColumnBuilder.Append(columnName + ", ");
     _insertValueBuilder.Append("@" + columnName + ", ");
 }