示例#1
0
        public static void InsertBatch(ArrayList objs, IDbTransaction trans)
        {
            Type        objType  = objs[0].GetType();
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            accesser.InsertBatch(objs, trans);
        }
示例#2
0
        public static void Update(object obj, IDbTransaction trans)
        {
            Type        objType  = obj.GetType();
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            accesser.Update(obj, trans);
        }
示例#3
0
        public static object InsertReturnIdentity(object obj, IDbTransaction trans)
        {
            Type        objType  = obj.GetType();
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            return(accesser.InsertReturnIdentity(obj, trans));
        }
示例#4
0
        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);
        }
示例#5
0
        public static DataSet GetDataSet(Type objType, string select_str)
        {
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            return(accesser.GetDataSet(select_str));
        }
示例#6
0
        public static object GetFieldValueEx(Type objType, string whereStr, string fieldName)
        {
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            return(accesser.GetFieldValueEx(whereStr, fieldName));
        }
示例#7
0
        public static object GetFieldValue(Type objType, string theID, string fieldName)
        {
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            return(accesser.GetFieldValue(theID, fieldName));
        }
示例#8
0
        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));
        }
示例#9
0
        public static void Delete(Type objType, object ID, IDbTransaction trans)          //ID一般为int或string类型
        {
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            accesser.Delete(ID, trans);
        }
示例#10
0
        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));
        }
示例#11
0
        public static void Insert(Type objType, object obj, IDbTransaction trans)
        {
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            accesser.Insert(obj, trans);
        }
示例#12
0
        public static bool FillBlobData(Type objType, object obj)
        {
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            return(accesser.FillBlobData(obj));
        }
示例#13
0
        public static object[] GetObjectsWithoutBolb(Type objType, string whereStr)
        {
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            return(accesser.GetObjectsWithoutBlob(whereStr));
        }
示例#14
0
        public static object GetAObjectEspecial(Type objType, string theID)
        {
            string whereStr = string.Format("Where ID = '{0}'", theID);

            return(DataEntrance.GetAObject(objType, whereStr));
        }
示例#15
0
        public static object GetAObject(Type objType, string whereStr)
        {
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            return(accesser.GetAObject(whereStr));
        }