コード例 #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, BackEndContext dbContext)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            //// Creating database if not exists
            //dbContext.Database.EnsureCreated();

            app.UseHttpsRedirection();

            app.UseRouting();

            app.UseAuthentication();
            app.UseAuthorization();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FuncionarioRepository"/> class.
 ///     Construtor padrão de <see cref="FuncionarioRepository"/>.
 /// </summary>
 /// <param name="context">
 ///     O contexto do repositório. Veja <see cref="BackEndContext"/>.
 /// </param>
 public FuncionarioRepository(BackEndContext context)
     : base(context)
 {
 }
コード例 #3
0
 public ActivityReservationsController(BackEndContext context)
 {
     _context = context;
 }
コード例 #4
0
 public UnitOfWork(BackEndContext context)
 {
     this.context = context;
 }
コード例 #5
0
 public InvoicesController(BackEndContext context)
 {
     _context = context;
 }
コード例 #6
0
 public SpeakersController(BackEndContext context)
 {
     _context = context;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FormaPagamentoRepository"/> class.
 ///     Construtor padrão de <see cref="FormaPagamentoRepository"/>.
 /// </summary>
 /// <param name="context">
 ///     O contexto do repositório. Veja <see cref="BackEndContext"/>.
 /// </param>
 public FormaPagamentoRepository(BackEndContext context)
     : base(context)
 {
 }
コード例 #8
0
 public ProductsController(BackEndContext context)
 {
     _context = context;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseRepository{TEntity}"/> class.
 ///     A default contructor.
 ///     Contrutor padrão.
 /// </summary>
 /// <param name="context">
 ///     The context to be used.
 ///     O contexto a ser utilizado.
 /// </param>
 public BaseRepository(BackEndContext context)
 {
     this.Db    = context;
     this.DbSet = this.Db.Set <TEntity>();
 }
コード例 #10
0
 public AttendeesController(BackEndContext context)
 {
     _context = context;
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CargoRepository"/> class.
 ///     Construtor padrão de <see cref="CargoRepository"/>.
 /// </summary>
 /// <param name="context">
 ///     O contexto do repositório. Veja <see cref="BackEndContext"/>.
 /// </param>
 public CargoRepository(BackEndContext context)
     : base(context)
 {
 }
コード例 #12
0
 public ActivitiesController(BackEndContext context)
 {
     _context = context;
 }
コード例 #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SituacaoRepository"/> class.
 ///     Construtor padrão de <see cref="SituacaoRepository"/>.
 /// </summary>
 /// <param name="context">
 ///     O contexto do repositório. Veja <see cref="BackEndContext"/>.
 /// </param>
 public SituacaoRepository(BackEndContext context)
     : base(context)
 {
 }
コード例 #14
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="SeguradoraRepository"/> class.
 ///     Construtor padrão de <see cref="SeguradoraRepository"/>.
 /// </summary>
 /// <param name="context">
 ///     O contexto do repositório. Veja <see cref="MonliContext"/>.
 /// </param>
 public SeguradoraRepository(BackEndContext context)
     : base(context)
 {
 }
コード例 #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FranqueadoRepository"/> class.
 ///     Construtor padrão de <see cref="FranqueadoRepository"/>.
 /// </summary>
 /// <param name="context">
 ///     O contexto do repositório. Veja <see cref="BackEndContext"/>.
 /// </param>
 public FranqueadoRepository(BackEndContext context)
     : base(context)
 {
 }
コード例 #16
0
 public ResortsController(BackEndContext context)
 {
     _context = context;
 }
コード例 #17
0
 public SessionsController(BackEndContext context)
 {
     _context = context;
 }
コード例 #18
0
 public ProductsController(BackEndContext context, IAuthorizationService authorizationService)
 {
     _context = context;
     _authorizationService = authorizationService;
 }
コード例 #19
0
 public PostsController(BackEndContext context)
 {
     _context = context;
 }
コード例 #20
0
 public PersonsController(BackEndContext context)
 {
     _context = context;
 }
コード例 #21
0
 public CabinReservationsController(BackEndContext context)
 {
     _context = context;
 }
コード例 #22
0
 public CabinImagesController(BackEndContext context)
 {
     _context = context;
 }