コード例 #1
0
        // hien bamg danh gia cua hoc sinh
        public DanhGiaHocSinhNam bangDG(HocSinh hocSinh)
        {
            DanhGiaHocSinhNam danhGiaHocSinhNam = (from b in db.DanhGiaHocSinhNams
                                                   where b.HocSinh == hocSinh
                                                   select b).Single();

            return(danhGiaHocSinhNam);
        }
コード例 #2
0
        public void updateBangDG(DanhGiaHocSinhNam danhGiaHocSinhNam)
        {
            DanhGiaHocSinhNam bang = (from b in db.DanhGiaHocSinhNams
                                      where b.HocSinh == danhGiaHocSinhNam.HocSinh &&
                                      b.NamHoc == danhGiaHocSinhNam.NamHoc
                                      select b).Single();

            if (bang != null)
            {
                bang.TheLuc       = danhGiaHocSinhNam.TheLuc;
                bang.Ngonngu      = danhGiaHocSinhNam.Ngonngu;
                bang.DanhGiaChung = danhGiaHocSinhNam.DanhGiaChung;
                bang.DanhHieu     = danhGiaHocSinhNam.DanhHieu;
                bang.MaGV         = danhGiaHocSinhNam.MaGV;
                bang.NhanThuc     = danhGiaHocSinhNam.NhanThuc;
                bang.ThamMy       = danhGiaHocSinhNam.ThamMy;
                bang.TinhCamQHXH  = danhGiaHocSinhNam.TinhCamQHXH;
                db.SaveChanges();
            }
        }
コード例 #3
0
 public void insertBangDG(DanhGiaHocSinhNam danhGiaHocSinhNam)
 {
     db.DanhGiaHocSinhNams.Add(danhGiaHocSinhNam);
     db.SaveChanges();
 }