C# 基础项目——课程管理系统DEMO(五)之Models
一:DAL层
1. DAL层基本构成
Course |
1 namespace CourseManageModels 2 { 3 public class Course 4 { 5 public int CourseId { get; set; } 6 public string CourseName { get; set; } 7 public string CourseContent { get; set; } 8 public int ClassHour { get; set; } 9 public int CourseHour { get; set; } 10 public int Credit { get; set; } 11 public int TeacherId { get; set; } 12 public int CategoryId { get; set; } 13 14 //简单扩展实体属性 15 public string CategoryName { get; set; } 16 public string TeacherName { get; set; } 17 } 18 } |
CourseCategory |
1 namespace CourseManageModels 2 { 3 public class CourseCategory 4 { 5 public int CategoryId { get; set; } 6 public string CategoryName { get; set; } 7 } 8 } |
Teacher |
1 namespace CourseManageModels 2 { 3 public class Teacher 4 { 5 public int TeacherId { get; set; } 6 public string LoginAccount { get; set; } 7 public string LoginPwd { get; set; } 8 public string TeacherName { get; set; } 9 public string PhoneNumber { get; set; } 10 public string NowAddress { get; set; } 11 } 12 } |
END