Пример #1
0
        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);

            NpgsqlModelBuilderExtensions.UseHiLo(builder);

            builder.Entity <IdentityUser <long> >().ToTable("User");
            builder.Entity <IdentityRole <long> >().ToTable("Role");
            builder.Entity <IdentityUserClaim <long> >().ToTable("UserClaim");
            builder.Entity <IdentityRoleClaim <long> >().ToTable("RoleClaim");
            builder.Entity <IdentityUserLogin <long> >().ToTable("UserLogin");
            builder.Entity <IdentityUserRole <long> >().ToTable("UserRole");
            builder.Entity <IdentityUserToken <long> >().ToTable("UserToken");
        }