public static IdentityUserManager Create(IdentityFactoryOptions <IdentityUserManager> options,
                                                 IOwinContext context)
        {
            PizzaDataContext    dbContext      = new PizzaDataContext();
            UserRepository      userRepository = new UserRepository(dbContext);
            IdentityUserStore   userStore      = new IdentityUserStore(userRepository);
            IdentityUserManager userManager    = new IdentityUserManager(userStore);

            userManager.UserValidator = new IdentityUserValidator();

            return(userManager);
        }
 public ContactRepository(PizzaDataContext db)
     : base(db)
 {
 }
Beispiel #3
0
 public BaseRepository(PizzaDataContext db)
 {
     this.Context = db;
     this.DbSet   = this.Context.Set <T>();
 }
 public PizzaRepository(PizzaDataContext db)
     : base(db)
 {
 }
 public TemplateRepository(PizzaDataContext db)
     : base(db)
 {
 }
Beispiel #6
0
 public PizzasController(PizzaDataContext context)
 {
     this.context = context;
 }
Beispiel #7
0
 public IngredientRepository(PizzaDataContext db)
     : base(db)
 {
 }
 public OrderRepository(PizzaDataContext db)
     : base(db)
 {
 }