zoukankan      html  css  js  c++  java
  • 排球计分程序(三)—— 模型类的设计与实现

    通过EF框架设计模型生成数据图和表: 

    1)添加运动员模型类:
    namespace 排球计分程序.Models
    {
        public class Ball
        {
            public int ID { get; set; }
            public string XingMing { get; set; }
            public string Age { get; set; }
            public string WeiZhi { get; set; }
            public string Shenglv { get; set; }
            public string RongYu { get; set; }

        }
        public class BallDBContext : DbContext
        {
            public DbSet<Ball> Movies { get; set; }

        }
    }

    2)添加队伍公告模型类:

    namespace 排球队伍公告信息.Models.Entities
    {
        public class AnnounceInfo
        {
            public int ID { get; set; }
            public string Title { get; set; }
            public string Content { get; set; }
            public string DuiMing { get; set; }
            public string Jieshao { get; set; }
            public int Category { get; set; }
        }
    }

    3)添加比赛计分类:

    namespace 排球计分.Models
    {
        public class Team
        {
                public int ID { get; set; }//ID号
                public string Name { get; set; }//队名
                public decimal Score { get; set; }//得分
                       
                public string   Team { get; set; }
                public string  Score { get; set; }
                public string  Add { get; set; }
                public string Delete { get; set; }
                public string Faqiu { get; set; }
                public string Lanwang  { get; set; }
                public string Kouqiu { get; set; }
                public string Zhugong { get; set; }
               
        }
    }

  • 相关阅读:
    [TimLinux] Python 函数(2)
    [TimLinux] Python nonlocal和global的作用
    [TimLinux] Python 装饰器
    fragment+viepager 的简单暴力的切换方式
    EditText键盘弹出时,会将布局底部的导航条顶上去(解决方法之一)
    EditText取消自动调用键盘事件(方法之一)
    Fragment滑动切换简单案例
    ListAdapter列表适配器
    ListView列表的简单案例
    ViewPager图片切换的简单案例
  • 原文地址:https://www.cnblogs.com/sdl1305702018/p/7063605.html
Copyright © 2011-2022 走看看