Exemplo n.º 1
0
        public static void init(DBContextSchool context)
        {
            context.Database.EnsureCreated();

            if (context.Student.Any())
            {
                return;
            }
            else
            {
                context.Add(new Student());

                context.SaveChanges();
            }
        }
Exemplo n.º 2
0
 public TeacherService(DBContextSchool dBContextSchool)
 {
     _dBContextSchool = dBContextSchool;
 }
Exemplo n.º 3
0
 public StudentService(DBContextSchool dBContextSchool)
 {
     _dBContextSchool = dBContextSchool;
 }
Exemplo n.º 4
0
 public CourseService(DBContextSchool dBContextSchool)
 {
     _dBContextSchool = dBContextSchool;
 }