Esempio n. 1
0
 public HomeController(
     BibContext bibContext,
     UserManager <Benutzer> userManager)
 {
     this.bibContext  = bibContext;
     this.userManager = userManager;
 }
Esempio n. 2
0
 public BuchController(
     BibContext bibContext,
     UserManager <Benutzer> userManager,
     IToastNotification toastNotification)
 {
     this.bibContext        = bibContext;
     this.userManager       = userManager;
     this.toastNotification = toastNotification;
 }
Esempio n. 3
0
 public DbInitializer(
     BibContext bibContext,
     UserManager <Benutzer> userManager,
     RoleManager <IdentityRole> roleManager)
 {
     this.bibContext  = bibContext;
     this.userManager = userManager;
     this.roleManager = roleManager;
 }
Esempio n. 4
0
 public BenutzerController(
     UserManager <Benutzer> userManager,
     SignInManager <Benutzer> signInManager,
     IToastNotification toastNotification,
     BibContext bibContext)
 {
     this.userManager       = userManager;
     this.signInManager     = signInManager;
     this.toastNotification = toastNotification;
     this.bibContext        = bibContext;
 }
Esempio n. 5
0
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, BibContext context, IServiceProvider service, DbInitializer dbInitializer)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseBrowserLink();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }
            app.UseStaticFiles();

            app.UseAuthentication();
            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Benutzer}/{action=Login}/{id?}");
            });
            context.Database.EnsureCreated();
            ((DbInitializer)dbInitializer).Initialize().Wait();
        }
Esempio n. 6
0
        public static WarenkorbManager GetWarenkorbManager(Benutzer.Benutzer benutzer, BibContext bibContext)
        {
            var warenkorb = new WarenkorbManager(bibContext)
            {
                BenutzerName = benutzer.UserName
            };

            return(warenkorb);
        }
Esempio n. 7
0
 public WarenkorbManager(BibContext bibContext)
 {
     this.bibContext = bibContext;
 }
 public UnitOfWork(IDatabaseFactory dbFactory)
 {
     this.dbFactory = dbFactory;
     dataContext    = dbFactory.DataContext;
 }
Esempio n. 9
0
        public static LeihauftragManager GetLeihauftragManager(BibContext bibContext)
        {
            var cart = new LeihauftragManager(bibContext);

            return(cart);
        }
Esempio n. 10
0
 public LeihauftragManager(BibContext bibContext)
 {
     this.bibContext = bibContext;
 }
Esempio n. 11
0
 public GenderRepository(BibContext context)
 {
     this.bibContext = context;
 }
 public DatabaseFactory()
 {
     dataContext = new BibContext();
 }
Esempio n. 13
0
 public ReviewRepository(BibContext context)
 {
     this.bibContext = context;
 }
Esempio n. 14
0
 public LoanRepository(BibContext context)
 {
     this.bibContext = context;
 }
Esempio n. 15
0
 public AutorRepository(BibContext context)
 {
     this.bibContext = context;
 }
Esempio n. 16
0
 public BookRepository(BibContext context)
 {
     this.bibContext = context;
 }