예제 #1
0
        private void FixupReceitpNote(ReceitpNote previousValue)
        {
            if (previousValue != null && ReferenceEquals(previousValue.DeliveryNotes, this))
            {
                previousValue.DeliveryNotes = null;
            }

            if (ReceitpNote != null)
            {
                ReceitpNote.DeliveryNotes = this;
            }
        }
예제 #2
0
 public void CreateReceiptNote(ReceitpNote rn)
 {
     db.ReceitpNotes.AddObject(rn);
     db.SaveChanges();
 }