Esempio n. 1
0
 /// <summary>
 /// Method to set seeds into database.
 /// </summary>
 public static void SetSeeds()
 {
     using var db = new SSOContext();
     if (!db.Users.Any())
     {
         CompanySeed.SetSeeds(db);
         PermissionSeed.SetSeeds(db);
         UserSeed.SetSeeds(db);
         RoleSeed.SetSeeds(db);
         UserParamsSeed.SetSeeds(db);
         RolePermissionSeed.SetSeeds(db);
         UserRoleSeed.SetSeeds(db);
         CompanyAirportsSeed.SetSeeds(db);
     }
 }