コード例 #1
0
        public MTIdentitySeeder(IHostingEnvironment hosting,
                                MTIdentityDbContext ctx,
                                KullaniciYonetici userManager, RolYonetici rolYonetici)
        {
            identityContext  = ctx;
            _hosting         = hosting;
            _userManager     = userManager;
            this.rolYonetici = rolYonetici;
            var migrasyonGerekli = ctx.Database.GetPendingMigrations();

            if (migrasyonGerekli.Count() > 0)
            {
                ctx.Database.Migrate();
            }
        }
コード例 #2
0
 public MTClaimsPrincipalFactory(KullaniciYonetici userManager, RolYonetici roleManager, IOptions <IdentityOptions> optionsAccessor) : base(userManager, roleManager, optionsAccessor)
 {
 }