示例#1
0
 public HomeController(
     BibContext bibContext,
     UserManager <Benutzer> userManager)
 {
     this.bibContext  = bibContext;
     this.userManager = userManager;
 }
示例#2
0
 public BuchController(
     BibContext bibContext,
     UserManager <Benutzer> userManager,
     IToastNotification toastNotification)
 {
     this.bibContext        = bibContext;
     this.userManager       = userManager;
     this.toastNotification = toastNotification;
 }
示例#3
0
 public DbInitializer(
     BibContext bibContext,
     UserManager <Benutzer> userManager,
     RoleManager <IdentityRole> roleManager)
 {
     this.bibContext  = bibContext;
     this.userManager = userManager;
     this.roleManager = roleManager;
 }
示例#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;
 }
示例#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();
        }
示例#6
0
        public static WarenkorbManager GetWarenkorbManager(Benutzer.Benutzer benutzer, BibContext bibContext)
        {
            var warenkorb = new WarenkorbManager(bibContext)
            {
                BenutzerName = benutzer.UserName
            };

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

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