예제 #1
0
        public static DataTable ExecuteSql(SqlTransaction t, InfiChess tableName, string sql, params object[] vals)
        {
            DataSet ds = SqlHelper.ExecuteSql(t, sql, vals);

            DataTable table = null;

            if (ds.Tables.Count != 0)
            {
                table = ds.Tables[0];

                table.TableName = tableName.ToString();
            }

            return(table);
        }
예제 #2
0
 public static string ToSelect(InfiChess tableName, params object[] whereColVals)
 {
     return(ToSelect(tableName.ToString(), whereColVals));
 }
예제 #3
0
 public static string ToSelectAll(InfiChess tableName)
 {
     return(ToSelectAll(tableName.ToString()));
 }
예제 #4
0
 public static DataTable Select(InfiChess tableName, int id)
 {
     return(Select(tableName, tableName.ToString() + "ID", id));
 }
예제 #5
0
 public static DataTable Select(InfiChess tableName)
 {
     return(Select(tableName.ToString()));
 }
예제 #6
0
 public static void Delete(InfiChess tableName, params object[] whereColVals)
 {
     ExecuteSql(UData.ToDelete(tableName.ToString(), whereColVals));
 }
예제 #7
0
 public static void Delete(InfiChess tableName, int id)
 {
     ExecuteSql(UData.ToDelete(tableName.ToString(), tableName.ToString() + "ID", id));
 }
예제 #8
0
 public static DataTable ExecuteSql(InfiChess tableName, string sql, SqlParameter[] commandParameters)
 {
     return(ExecuteSql(tableName.ToString(), sql, commandParameters));
 }
예제 #9
0
 public static DataTable ExecuteSql(InfiChess tableName, string sql, params object[] vals)
 {
     return(ExecuteSql(tableName.ToString(), sql, vals));
 }
예제 #10
0
 public static TC SelectItems2(InfiChess tableName, string sql, params object[] vals)
 {
     return(SelectItems2(tableName.ToString(), sql, vals));
 }
예제 #11
0
        public static TC SelectItems(InfiChess tableName, string sql)
        {
            TC items = SelectItems(tableName.ToString(), sql);

            return(items);
        }
예제 #12
0
        public static TC SelectItems(InfiChess tableName, params object[] whereColVals)
        {
            string s = UData.ToSelect(tableName, whereColVals);

            return(SelectItems(tableName.ToString(), s));
        }
예제 #13
0
 public static T SelectItem(InfiChess tableName, int id)
 {
     return(SelectItem(tableName, tableName.ToString() + "ID", id));
 }