Exemplo n.º 1
0
 public PlayerView(Cauthu cauthu)
 {
     this.Id        = cauthu.Id;
     this.TenCauThu = cauthu.TenCauThu;
     this.Gioitinh  = cauthu.Gioi_Tinh;
     this.Ngaysinh  = cauthu.NgaySinh;
     this.Nickname  = cauthu.Nickname;
     this.Quequan   = cauthu.Quequan;
     this.Chieucao  = cauthu.Chieucao;
     this.Vitri     = cauthu.Vitri;
     this.Soao      = cauthu.Soao;
     this.clb       = cauthu.clb;
 }
Exemplo n.º 2
0
        public void AddPlayer(string TenCauThu, string Gioitinh, DateTime NgaySinh, string Nickname, string Quequan, string ChieuCao, string Vitri, string Soao, string clb)
        {
            var db     = new QLCTEntities1();
            var player = new Cauthu();

            player.TenCauThu = TenCauThu;
            player.Gioi_Tinh = Gioitinh;
            player.NgaySinh  = NgaySinh;
            player.Nickname  = Nickname;
            player.Quequan   = Quequan;
            player.Chieucao  = ChieuCao;
            player.Vitri     = Vitri;
            player.Soao      = Soao;
            player.clb       = clb;

            db.Cauthus.Add(player);
            db.SaveChanges();
        }