//[System.Diagnostics.DebuggerNonUserCode] private void OnMedicinesAdd(Medicines entity) { this.OrderedMedicines.Add(new OrderedMedicines { Orders = this, Medicines = entity }); SendPropertyChanged(null); }
//[System.Diagnostics.DebuggerNonUserCode] private void OnMedicinesRemove(Medicines entity) { var orderedMedicines = this.OrderedMedicines.FirstOrDefault( c => c.Order_Id == Id && c.Medicine_Id == entity.Id); this.OrderedMedicines.Remove(orderedMedicines); SendPropertyChanged(null); }
partial void UpdateMedicines(Medicines instance);
partial void DeleteMedicines(Medicines instance);
partial void InsertMedicines(Medicines instance);