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

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

            RepoDbSet.RemoveRange(objects);
        }