Exemple #1
0
        public async Task RemoveByProductId(int productId)
        {
            var objects = await RepoDbSet
                          .Where(obj => obj.ProductId == productId)
                          .ToListAsync();

            RepoDbSet.RemoveRange(objects);
        }
Exemple #2
0
        public async Task RemoveByChangeId(int changeId)
        {
            var objects = await RepoDbSet
                          .Where(obj => obj.ChangeId == changeId)
                          .ToListAsync();

            RepoDbSet.RemoveRange(objects);
        }