Exemplo n.º 1
0
        public static void EnsurePopulated(IApplicationBuilder app)
        {
            AppMuscleDbContext context = app.ApplicationServices
                                         .GetRequiredService <AppMuscleDbContext>();

            context.Database.Migrate();
            if (!context.MuscleGroup.Any())
            {
                context.MuscleGroup.AddRange();


                context.SaveChanges();
            }
        }
Exemplo n.º 2
0
 public EFMuscleGroupRepository(AppMuscleDbContext ctx)
 {
     context = ctx;
 }
Exemplo n.º 3
0
 public EFWorkOutsRepository(AppMuscleDbContext ctx)
 {
     context = ctx;
 }