Example #1
0
 //[System.Diagnostics.DebuggerNonUserCode]
 private void OnMedicinesAdd(Medicines entity)
 {
     this.OrderedMedicines.Add(new OrderedMedicines {
         Orders = this, Medicines = entity
     });
     SendPropertyChanged(null);
 }
Example #2
0
        //[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);
        }
Example #3
0
 partial void UpdateMedicines(Medicines instance);
Example #4
0
 partial void DeleteMedicines(Medicines instance);
Example #5
0
 partial void InsertMedicines(Medicines instance);