コード例 #1
0
 public List <Venda> ObterRelatorioDeVenda(DateTime dataInicio, DateTime dataFim)
 {
     return(_context.Set <Venda>()
            .Include(v => v.Consumo)
            .Where(v => v.DataDaVenda >= dataInicio && v.DataDaVenda <= dataFim)
            .ToList());
 }
コード例 #2
0
 public RepositorioBase(FogContext context)
 {
     _dbSet   = context.Set <TEntity>();
     _context = context;
 }