public DefaultTeacherCourseArrangesCreator(CourseManagerDbContext context)
        {
            _context = context;
            _teacherCourseArrange = new List <TeacherCourseArrange>()
            {
                //方法一:Convert.ToDateTime(string)string格式有要求,必须是yyyy-MM-dd hh:mm:ss
                //崔俊燮
                new TeacherCourseArrange {
                    Id = Common.IdentityCreator.NewGuid, CreationTime = DateTime.Now, CreatorUserId = 0, IsDeleted = false, TenantId = 1, TeacherId = 1, BeginTime = new DateTime(2017, 6, 13, 13, 00, 00), EndTime = new DateTime(2017, 6, 13, 15, 00, 00), StudentId = "c2d4e232d382474ca8ab40f9b0144767", ClassType = "64c951d110044a51bd83c7e7e82f96ec", CourseType = "e64269153d394e9e94ff970f2c16ae89", Remark = "崔俊燮 星期二下午1点到三点 1v1 上 提高课2个小时", CourseAddressType = "03648bb7f50442609b0936158d1b92b4", Address = "学院"
                },
                new TeacherCourseArrange {
                    Id = Common.IdentityCreator.NewGuid, CreationTime = DateTime.Now, CreatorUserId = 0, IsDeleted = false, TenantId = 1, TeacherId = 1, BeginTime = new DateTime(2017, 6, 15, 13, 00, 00), EndTime = new DateTime(2017, 6, 15, 15, 00, 00), StudentId = "c2d4e232d382474ca8ab40f9b0144767", ClassType = "64c951d110044a51bd83c7e7e82f96ec", CourseType = "e64269153d394e9e94ff970f2c16ae89", Remark = "崔俊燮 星期四下午1点到三点 1v1 上 提高课2个小时", CourseAddressType = "03648bb7f50442609b0936158d1b92b4", Address = "学院"
                },

                new TeacherCourseArrange {
                    Id = Common.IdentityCreator.NewGuid, CreationTime = DateTime.Now, CreatorUserId = 0, IsDeleted = false, TenantId = 1, TeacherId = 1, BeginTime = new DateTime(2017, 6, 16, 13, 00, 00), EndTime = new DateTime(2017, 6, 16, 13, 00, 00), StudentId = "c2d4e232d382474ca8ab40f9b0144767", ClassType = "64c951d110044a51bd83c7e7e82f96ec", CourseType = "e64269153d394e9e94ff970f2c16ae89", Remark = "崔俊燮 星期五下午1点到三点 1v1 上 提高课2个小时", CourseAddressType = "03648bb7f50442609b0936158d1b92b4", Address = "学院"
                },

                //程多运
                new TeacherCourseArrange {
                    Id = Common.IdentityCreator.NewGuid, CreationTime = DateTime.Now, CreatorUserId = 0, IsDeleted = false, TenantId = 1, TeacherId = 1, BeginTime = new DateTime(2017, 6, 16, 15, 00, 00), EndTime = new DateTime(2017, 6, 16, 17, 00, 00), StudentId = "30333bec8e8e4634bb78b65cdd8ff8ef", ClassType = "64c951d110044a51bd83c7e7e82f96ec", CourseType = "e64269153d394e9e94ff970f2c16ae89", Remark = "程多运 星期四下午3点到5点 1v1 上 提高课2个小时", CourseAddressType = "03648bb7f50442609b0936158d1b92b4", Address = "学院"
                },

                //赵晟奎
                new TeacherCourseArrange {
                    Id = Common.IdentityCreator.NewGuid, CreationTime = DateTime.Now, CreatorUserId = 0, IsDeleted = false, TenantId = 1, TeacherId = 1, BeginTime = new DateTime(2017, 6, 13, 18, 30, 00), EndTime = new DateTime(2017, 6, 13, 20, 00, 00), StudentId = "eb7ca4ebdc5e48c582c224fd7f9854f0", ClassType = "64c951d110044a51bd83c7e7e82f96ec", CourseType = "e64269153d394e9e94ff970f2c16ae89", Remark = "赵晟奎 星期二晚上六点半到八点 1v1 上 提高课1个半小时", CourseAddressType = "55c431fd26b845b0a00880243d1a25a3", Address = "蛇口东角头"
                },
                new TeacherCourseArrange {
                    Id = Common.IdentityCreator.NewGuid, CreationTime = DateTime.Now, CreatorUserId = 0, IsDeleted = false, TenantId = 1, TeacherId = 1, BeginTime = new DateTime(2017, 6, 17, 09, 30, 00), EndTime = new DateTime(2017, 6, 17, 11, 00, 00), StudentId = "eb7ca4ebdc5e48c582c224fd7f9854f0", ClassType = "64c951d110044a51bd83c7e7e82f96ec", CourseType = "e64269153d394e9e94ff970f2c16ae89", Remark = "赵晟奎 星期六上午九点半到十一点 1v1 上 提高课1个半小时", CourseAddressType = "55c431fd26b845b0a00880243d1a25a3", Address = "蛇口东角头"
                }
            };
        }
Exemplo n.º 2
0
 public HostRoleAndUserCreator(CourseManagerDbContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public DefaultEditionsCreator(CourseManagerDbContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public DefaultLanguagesCreator(CourseManagerDbContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public InitialHostDbBuilder(CourseManagerDbContext context)
 {
     _context = context;
 }
Exemplo n.º 6
0
        public DefaultCategorysCreator(CourseManagerDbContext context)
        {
            _context   = context;
            _categorys = new List <Categorys>()
            {
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "外派", DictionaryValue = "OutSide", CategoryType = "CourseAddressType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 1, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "学院上课", DictionaryValue = "InCollege", CategoryType = "CourseAddressType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 2, SysDefined = 1, TenantId = 1, ParentId = "0"
                },


                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "1V1", DictionaryValue = "one2One", CategoryType = "ClassType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 1, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "班级课", DictionaryValue = "ClassCourse", CategoryType = "ClassType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 2, SysDefined = 1, TenantId = 1, ParentId = "0"
                },

                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "入门上", DictionaryValue = "Entry", CategoryType = "CourseType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 1, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "入门下", DictionaryValue = "Entrance", CategoryType = "CourseType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 2, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "基础", DictionaryValue = "Basic", CategoryType = "CourseType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 3, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "提高", DictionaryValue = "Upgrade", CategoryType = "CourseType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 4, SysDefined = 1, TenantId = 1, ParentId = "0"
                },

                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "TSC", DictionaryValue = "TSC", CategoryType = "CourseType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 5, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "快乐汉语", DictionaryValue = "HappyChinese", CategoryType = "CourseType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 6, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "迟到", DictionaryValue = "Late", CategoryType = "SignInRecordType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 1, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "准时上课", DictionaryValue = "Normal", CategoryType = "SignInRecordType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 2, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "未上课", DictionaryValue = "NoCourse", CategoryType = "SignInRecordType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 3, SysDefined = 1, TenantId = 1, ParentId = "0"
                },


                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "老师请假", DictionaryValue = "TeacherLeave", CategoryType = "NoCourseReasonType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 1, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "学生请假", DictionaryValue = "StudentLeave", CategoryType = "NoCourseReasonType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 2, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "其他原因", DictionaryValue = "OtherReason", CategoryType = "NoCourseReasonType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 3, SysDefined = 1, TenantId = 1, ParentId = "0"
                },


                //课程状态 预排 待放课 放课 取消 结课
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "预排", DictionaryValue = "Default", CategoryType = "CourseStatusType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 1, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "待放课", DictionaryValue = "Normal", CategoryType = "CourseStatusType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 2, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "已放课", DictionaryValue = "Effective", CategoryType = "CourseStatusType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 3, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "已取消", DictionaryValue = "Cancel", CategoryType = "CourseStatusType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 4, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
                new Categorys {
                    Id = Common.IdentityCreator.NewGuid, CategoryName = "已结课", DictionaryValue = "Finished", CategoryType = "CourseStatusType", CreationTime = DateTime.Now, CreatorUserId = 0, IsActive = true, IsDeleted = false, Level = 1, SortNo = 5, SysDefined = 1, TenantId = 1, ParentId = "0"
                },
            };
        }
Exemplo n.º 7
0
 public DefaultStudentCreator(CourseManagerDbContext context)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public DefaultSettingsCreator(CourseManagerDbContext context)
 {
     _context = context;
 }
Exemplo n.º 9
0
 public TenantRoleAndUserBuilder(CourseManagerDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }