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");
     }
 }
Exemplo n.º 2
0
 public PedidoRepository(CompraContext context) : base(context)
 {
 }
Exemplo n.º 3
0
 public EnderecoController(CompraContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public CompraController(CompraContext context, ProdutoContext pContext)
 {
     compraContext  = context;
     produtoContext = pContext;
 }
Exemplo n.º 5
0
 public CompraRepository(CompraContext context) : base(context)
 {
     _context = context;
 }
 public ClienteController(CompraContext context)
 {
     _context = context;
 }
Exemplo n.º 7
0
 public CompraService(CompraContext _Compracontext)
 {
     Compracontext = _Compracontext;
 }
 public UsuarioRepository(CompraContext context) : base(context)
 {
     _context = context;
 }
 public ProdutoRepository(CompraContext context) : base(context)
 {
     _context = context;
 }