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); }
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); }