public async Task <List <PRODUCT> > LoadName(string prefix) { var context = new ShopDienThoaiDbContext(); context.Configuration.ProxyCreationEnabled = false; return(await context.PRODUCTs.AsNoTracking().Where(x => x.ProductName.Contains(prefix)).ToListAsync()); }
public ProductDAO() { db = new ShopDienThoaiDbContext(); }
public OrderDAO() { db = new ShopDienThoaiDbContext(); }
public AdminDAO() { db = new ShopDienThoaiDbContext(); db.Configuration.ProxyCreationEnabled = false; }
public ConfigurationDAO() { db = new ShopDienThoaiDbContext(); }