private void SeedDummy()
        {
            db.Batches.AddRange(new Batch[]
            {
                new Batch {
                    BatchName = "ESAD-CS/39", CourseHours = 1080
                },
                new Batch {
                    BatchName = "NT/39", CourseHours = 960
                },
                new Batch {
                    BatchName = "GAVE/39", CourseHours = 960
                }
            });

            db.SaveChanges();
            db.Trainees.AddRange(new Trainee[]
            {
                new Trainee {
                    TraineeName = "Kazi", TID = "1247335", TSP = TSP.ACSL, Contact = "01684094421", BatchId = 1
                },
                new Trainee {
                    TraineeName = "Helal Uddin", TID = "124766", TSP = TSP.ACSL, Contact = "01681095451", BatchId = 1
                },
            });
            db.SaveChanges();
        }
Example #2
0
        public void Create()
        {
            _batchContext.DisableAllFilters();

            new DefaultCustomerCreator(_batchContext).Create();

            _batchContext.SaveChanges();
        }