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