예제 #1
0
 public int Execute(string tableName)
 {
     return(dataBase.ExecuteNonQuery("UPDATE [" + tableName + "] SET " + sb.ToString().TrimStart(','), pars.ToArray()));
 }
예제 #2
0
 public int Execute(string tableName)
 {
     return(dataBase.ExecuteNonQuery("INSERT INTO [" + tableName + "](" + field.ToString().TrimStart(',') + ") VALUES(" + values.ToString().TrimStart(',') + ")", pars.ToArray()));
 }
예제 #3
0
파일: Orm.cs 프로젝트: huangzewen/PowerGrid
 public static int ExecuteEntity(DbHelper db, string sql, CommandType commandType, object entity)
 {
     return(db.ExecuteNonQuery(sql, commandType, GetParameters(db, entity)));
 }