public virtual async Task <int> UpdateRangeAsync <T>(IEnumerable <T> entities, string[] ByIds, string[] ignoreParameters = null) { var query = $"UPDATE {typeof(T).Name} SET {_dbHelper.ConstructColumsForUpdate<T>(ignoreParameters)} Where {_dbHelper.ConstructColumsForUpdateWithKeys<T>(ByIds)} and Enabled=True;"; var count = await _dapper.ExecuteAsync(_dbconnection, query, entities, _openTransaction); return(count); }