public virtual async Task <int> AddAsync <T>(T entity, string[] ignoreParameters) { var query = $"INSERT INTO {typeof(T).Name} ({_dbHelper.ConstructColumsForInsert<T>(ignoreParameters)}) VALUES ({_dbHelper.ConstructParamsForInsert<T>(ignoreParameters)});SELECT LAST_INSERT_ID();"; var result = await _dapper.QueryAsync <int>(_dbconnection, query, entity, _openTransaction); return(result.Single()); }