コード例 #1
0
 public UnitOfWork(QLNHContext context)
 {
     this.context = context;
     ThucDons     = new ThucDonRepository(context);
     BanAns       = new BanAnRepository(context);
     HoaDons      = new HoaDonRepository(context);
     LoaiMonAns   = new LoaiMonAnRepository(context);
     KhachHangs   = new KhachHangRepository(context);
     PhieuDatBans = new PhieuDatBanRepository(context);
     NguoiDungs   = new NguoiDungRepository(context);
 }
コード例 #2
0
 public HoaDonController()
 {
     hdRepo = new HoaDonRepository();
 }