예제 #1
0
        public bool UpdateRange(IEnumerable <TEntity> entities)
        {
            bool res;

            using (var conn = new WrappedDbConnection(ConnectionFactory.GetDBConnecton(this._connectionString, this._dbAdapter)))
            {
                res = conn.Update(entities);
                conn.Close();
            }
            return(res);
        }
예제 #2
0
        public bool Update <T>(T entity) where T : class
        {
            bool res;

            using (var conn = new WrappedDbConnection(ConnectionFactory.GetDBConnecton(this._connectionString, this._dbAdapter)))
            {
                res = conn.Update(entity);
                conn.Close();
            }
            return(res);
        }