public CartItem(string iMaSP, int sl) { using (MOCK db = new MOCK()) { this.ProductID = iMaSP; PRODUCT sp = db.PRODUCTS.Single(n => n.ProductID == iMaSP); this.ProductName = sp.ProductName; this.Image = sp.Images; this.DonGia = sp.Price.Value; this.SoLuong = sl; this.ThanhTien = DonGia * SoLuong; } }
public ImageProductDAO() { db = new MOCK(); }
public CUSTOMERTYPEDAO() { db = new MOCK(); }
public PRODUCTTYPEDAO() { db = new MOCK(); }