1. 程式人生 > 其它 >C# 基礎專案——課程管理系統DEMO(五)之Models

C# 基礎專案——課程管理系統DEMO(五)之Models

 

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 }
Course

CourseCategory

1 namespace CourseManageModels
2 {
3     public class CourseCategory
4     {
5         public int CategoryId { get; set; }
6         public string CategoryName { get; set; }
7     }
8 }
CourseCategory

 

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 }
Teacher

 

 

 

END