Esempio n. 1
0
        public static void SeedCustomClaimTypes(this ExtendedConfigurationDbContext configurationDbContext, IEnumerable <ClaimType> claimTypes)
        {
            var knownClaimNames = InitialClaimTypes.Get().Select(e => e.Name).ToArray();

            configurationDbContext.AddRange(claimTypes.Where(x => !knownClaimNames.Contains(x.Name)));
        }
Esempio n. 2
0
 public static void SeedInitialClaimTypes(this ExtendedConfigurationDbContext configurationDbContext)
 {
     configurationDbContext.AddRange(InitialClaimTypes.Get());
 }