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

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

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

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

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

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

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

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

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

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

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

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

            return(accesser.GetAObject(whereStr));
        }