標籤:log class blog mod ring ace cti span team
模型類
Total類:
using System;using System.Collections.Generic;using System.Data.Entity;using System.Linq;using System.Web;namespace MvcVolleyball.Models{ public class Total { public int ID { get; set; }//id public string teamA { get; set; }//主隊名 public string teamB { get; set; }//客隊名 public string GFirst { get; set; }//第一局比分 public string GSecond { get; set; }//第二局比分 public string GThird { get; set; }//第三局比分 public string GFourth { get; set; }//第四局比分 public string GFifth { get; set; }//第五局比分 public string GSum { get; set; } //總比分 }
volleyball類:
using System;using System.Collections.Generic;using System.Data.Entity;using System.Linq;using System.Web;namespace MvcVolleyball.Models{ public class volleyball { public int ID { get; set; }//id public string teamA { get; set; }//主隊得分 public string teamA { get; set; }//客隊得分 public string nameA { get; set; }//主隊名字 public string nameB { get; set; }//客隊名字 }
MVC排球計分(四)——模型類設計