Ejemplo n.º 1
0
        public static AppUserManager Create(IdentityFactoryOptions <AppUserManager> options,
                                            IOwinContext context)
        {
            var kernel = context.Get <StandardKernel>();


            ChatMeContext  db      = context.Get <ChatMeContext>();
            AppUserManager manager = new AppUserManager(new UserStore <User>(db));

            return(manager);
        }
 public EFRepository(ChatMeContext db)
 {
     this.db = db;
 }
Ejemplo n.º 3
0
 public EFUnitOfWork()
 {
     db = new ChatMeContext();
 }