public static void InsertBatch(ArrayList objs, IDbTransaction trans) { Type objType = objs[0].GetType(); IDBAccesser accesser = DataEntrance.GetDestDealer(objType); accesser.InsertBatch(objs, trans); }
public static void Update(object obj, IDbTransaction trans) { Type objType = obj.GetType(); IDBAccesser accesser = DataEntrance.GetDestDealer(objType); accesser.Update(obj, trans); }
public static object InsertReturnIdentity(object obj, IDbTransaction trans) { Type objType = obj.GetType(); IDBAccesser accesser = DataEntrance.GetDestDealer(objType); return(accesser.InsertReturnIdentity(obj, trans)); }
public static void InsertBatch(Type objType, object[] objs, IDbTransaction trans) { ArrayList list = new ArrayList(); for (int i = 0; i < objs.Length; i++) { list.Add(objs[i]); } DataEntrance.InsertBatch(objType, list, trans); }
public static DataSet GetDataSet(Type objType, string select_str) { IDBAccesser accesser = DataEntrance.GetDestDealer(objType); return(accesser.GetDataSet(select_str)); }
public static object GetFieldValueEx(Type objType, string whereStr, string fieldName) { IDBAccesser accesser = DataEntrance.GetDestDealer(objType); return(accesser.GetFieldValueEx(whereStr, fieldName)); }
public static object GetFieldValue(Type objType, string theID, string fieldName) { IDBAccesser accesser = DataEntrance.GetDestDealer(objType); return(accesser.GetFieldValue(theID, fieldName)); }
public static IPaginationManager GetPaginationMgr(Type objType, int page_size, string whereStr, string[] columns) { IDBAccesser accesser = DataEntrance.GetDestDealer(objType); return(accesser.GetPaginationMgr(page_size, whereStr, columns)); }
public static void Delete(Type objType, object ID, IDbTransaction trans) //ID一般为int或string类型 { IDBAccesser accesser = DataEntrance.GetDestDealer(objType); accesser.Delete(ID, trans); }
public static bool UpdateFieldValue(Type objType, object theID, string fieldName, object newVal, IDbTransaction trans) { IDBAccesser accesser = DataEntrance.GetDestDealer(objType); return(accesser.UpdateFieldValue(theID, fieldName, newVal, trans)); }
public static void Insert(Type objType, object obj, IDbTransaction trans) { IDBAccesser accesser = DataEntrance.GetDestDealer(objType); accesser.Insert(obj, trans); }
public static bool FillBlobData(Type objType, object obj) { IDBAccesser accesser = DataEntrance.GetDestDealer(objType); return(accesser.FillBlobData(obj)); }
public static object[] GetObjectsWithoutBolb(Type objType, string whereStr) { IDBAccesser accesser = DataEntrance.GetDestDealer(objType); return(accesser.GetObjectsWithoutBlob(whereStr)); }
public static object GetAObjectEspecial(Type objType, string theID) { string whereStr = string.Format("Where ID = '{0}'", theID); return(DataEntrance.GetAObject(objType, whereStr)); }
public static object GetAObject(Type objType, string whereStr) { IDBAccesser accesser = DataEntrance.GetDestDealer(objType); return(accesser.GetAObject(whereStr)); }