Example #1
0
        public SanPhamDAO()
        {
            this.context = new SEDataContext(Global.ConnectionString);
            DataLoadOptions loadOption = new DataLoadOptions();

            loadOption.LoadWith <SanPham>(x => x.ChiTietSanPhams);
            loadOption.LoadWith <SanPham>(x => x.LoaiSP);
        }
Example #2
0
 public LoaiSPDAO()
 {
     this.context = new SEDataContext(Global.ConnectionString);
 }
Example #3
0
 public NhanVienDAO()
 {
     this.context = new SEDataContext(Global.ConnectionString);
 }