예제 #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)));
        }
예제 #2
0
 public static void SeedInitialClaimTypes(this ExtendedConfigurationDbContext configurationDbContext)
 {
     configurationDbContext.AddRange(InitialClaimTypes.Get());
 }