Exemple #1
0
 public static void Seed(ActivitySignupContext _db)
 {
     if (!_db.activities.Any())
     {
         // Adding Activities.
         _db.activities.AddRange(getInitialActivities());
         _db.SaveChanges();
     }
 }
 public ActivityRepository(ActivitySignupContext dbContext)
 {
     _db = dbContext;
 }
Exemple #3
0
 public SignupRepository(ActivitySignupContext dbContext, IActivity activity)
 {
     _db       = dbContext;
     _activity = activity;
 }