private void CopyContentFrom(Invoice sourceObject) { ReferenceToInformation = sourceObject.ReferenceToInformation; InvoiceName = sourceObject.InvoiceName; InvoiceID = sourceObject.InvoiceID; InvoicedAmount = sourceObject.InvoicedAmount; CreateDate = sourceObject.CreateDate; DueDate = sourceObject.DueDate; PaidAmount = sourceObject.PaidAmount; FeesAndInterestAmount = sourceObject.FeesAndInterestAmount; UnpaidAmount = sourceObject.UnpaidAmount; InvoiceDetails = sourceObject.InvoiceDetails; InvoiceUsers = sourceObject.InvoiceUsers; }
public static Invoice CreateDemoDefault() { Invoice customDemo = null; Invoice.CreateCustomDemo(ref customDemo); if(customDemo != null) return customDemo; var result = new Invoice(); result.ReferenceToInformation = ReferenceToInformation.CreateDemoDefault(); result.InvoiceName = @"Invoice.InvoiceName"; result.InvoiceID = @"Invoice.InvoiceID"; result.InvoicedAmount = @"Invoice.InvoicedAmount"; result.PaidAmount = @"Invoice.PaidAmount"; result.FeesAndInterestAmount = @"Invoice.FeesAndInterestAmount"; result.UnpaidAmount = @"Invoice.UnpaidAmount"; result.InvoiceDetails = InvoiceDetails.CreateDemoDefault(); result.InvoiceUsers = InvoiceUserCollection.CreateDemoDefault(); return result; }
partial static void CreateCustomDemo(ref Invoice customDemoObject);
public static Invoice CreateDefault() { var result = new Invoice(); result.ReferenceToInformation = ReferenceToInformation.CreateDefault(); result.InvoiceDetails = InvoiceDetails.CreateDefault(); result.InvoiceUsers = InvoiceUserCollection.CreateDefault(); return result; }