コード例 #1
0
        public static SmsServiceUserManager Create(IdentityFactoryOptions <SmsServiceUserManager> options, IOwinContext context)
        {
            SmsServiceContext     db      = context.Get <SmsServiceContext>();
            SmsServiceUserManager manager = new SmsServiceUserManager(new UserStore <SmsServiceUser>(db));

            return(manager);
        }
コード例 #2
0
 public GenericRepository(SmsServiceContext context)
 {
     this._context = context;
     this._dbSet   = context.Set <T>();
 }