Пример #1
0
        public void Insert(object obj, IDbTransaction trans)
        {
            Type        objType  = obj.GetType();
            IDBAccesser accesser = this.CreateDBAccesser(objType);

            accesser.Insert(obj, trans);
        }
Пример #2
0
        public static void Insert(object obj, IDbTransaction trans)
        {
            Type        objType  = obj.GetType();
            IDBAccesser accesser = DataEntrance.GetDestDealer(objType);

            accesser.Insert(obj, trans);
        }