private void CopyContentFrom(InvoiceDetails sourceObject)
 {
     MonthlyFeesTotal = sourceObject.MonthlyFeesTotal;
             OneTimeFeesTotal = sourceObject.OneTimeFeesTotal;
             UsageFeesTotal = sourceObject.UsageFeesTotal;
             InterestFeesTotal = sourceObject.InterestFeesTotal;
             PenaltyFeesTotal = sourceObject.PenaltyFeesTotal;
             TotalFeesTotal = sourceObject.TotalFeesTotal;
 }
partial         static void CreateCustomDemo(ref InvoiceDetails customDemoObject);
 public static InvoiceDetails CreateDefault()
 {
     var result = new InvoiceDetails();
             return result;
 }
        public static InvoiceDetails CreateDemoDefault()
        {
            InvoiceDetails customDemo = null;
                    InvoiceDetails.CreateCustomDemo(ref customDemo);
                    if(customDemo != null)
                        return customDemo;
                    var result = new InvoiceDetails();
                    result.MonthlyFeesTotal = @"InvoiceDetails.MonthlyFeesTotal";

                    result.OneTimeFeesTotal = @"InvoiceDetails.OneTimeFeesTotal";

                    result.UsageFeesTotal = @"InvoiceDetails.UsageFeesTotal";

                    result.InterestFeesTotal = @"InvoiceDetails.InterestFeesTotal";

                    result.PenaltyFeesTotal = @"InvoiceDetails.PenaltyFeesTotal";

                    result.TotalFeesTotal = @"InvoiceDetails.TotalFeesTotal";

                    return result;
        }
        void IInformationObject.SetInstanceTreeValuesAsUnmodified()
        {
            _unmodified_InvoiceName = InvoiceName;
                    _unmodified_InvoiceID = InvoiceID;
                    _unmodified_InvoicedAmount = InvoicedAmount;
                    _unmodified_CreateDate = CreateDate;
                    _unmodified_DueDate = DueDate;
                    _unmodified_PaidAmount = PaidAmount;
                    _unmodified_FeesAndInterestAmount = FeesAndInterestAmount;
                    _unmodified_UnpaidAmount = UnpaidAmount;

                    _unmodified_ReferenceToInformation = ReferenceToInformation;
                    if(ReferenceToInformation != null)
                        ((IInformationObject) ReferenceToInformation).SetInstanceTreeValuesAsUnmodified();

                    _unmodified_InvoiceDetails = InvoiceDetails;
                    if(InvoiceDetails != null)
                        ((IInformationObject) InvoiceDetails).SetInstanceTreeValuesAsUnmodified();

                    _unmodified_InvoiceUsers = InvoiceUsers;
                    if(InvoiceUsers != null)
                        ((IInformationObject) InvoiceUsers).SetInstanceTreeValuesAsUnmodified();
        }