public Boolean AddItemPrice(Int32 id, Decimal price) { ItemPrice query = new ItemPrice(); try { using (menuzRusDataContext db = new menuzRusDataContext(base.connectionString)) { query.Price = price; query.ItemId = id; db.ItemPrices.InsertOnSubmit(query); db.SubmitChanges(); } } catch (Exception ex) { return false; } return true; }
private void detach_ItemPrices(ItemPrice entity) { this.SendPropertyChanging(); entity.Item = null; }
private void attach_ItemPrices(ItemPrice entity) { this.SendPropertyChanging(); entity.Item = this; }
partial void DeleteItemPrice(ItemPrice instance);
partial void UpdateItemPrice(ItemPrice instance);
partial void InsertItemPrice(ItemPrice instance);