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