public virtual async Task<Setting> FindAsync(string name, string providerName, string providerKey) { return await DbSet .FirstOrDefaultAsync( s => s.Name == name && s.ProviderName == providerName && s.ProviderKey == providerKey ); } public virtual async Task<List<Setting>> GetListAsync(string providerName, string providerKey) { return await DbSet .Where( s => s.ProviderName == providerName && s.ProviderKey == providerKey ).ToListAsync(); }