public Repository(CompraContext context) { this.context = context; if (!context.Database.CanConnect()) { throw new ApiException(ApiException.ApiExceptionReason.DB_CONNECTION_NOT_COMPLETED, "Não foi possível abrir conexão com banco de dados"); } }
public PedidoRepository(CompraContext context) : base(context) { }
public EnderecoController(CompraContext context) { _context = context; }
public CompraController(CompraContext context, ProdutoContext pContext) { compraContext = context; produtoContext = pContext; }
public CompraRepository(CompraContext context) : base(context) { _context = context; }
public ClienteController(CompraContext context) { _context = context; }
public CompraService(CompraContext _Compracontext) { Compracontext = _Compracontext; }
public UsuarioRepository(CompraContext context) : base(context) { _context = context; }
public ProdutoRepository(CompraContext context) : base(context) { _context = context; }