private void CopyContentFrom(InvoiceUser sourceObject)
 {
     UserName = sourceObject.UserName;
             UserID = sourceObject.UserID;
             UserPhoneNumber = sourceObject.UserPhoneNumber;
             UserSubscriptionNumber = sourceObject.UserSubscriptionNumber;
             UserInvoiceTotalAmount = sourceObject.UserInvoiceTotalAmount;
             InvoiceRowGroupCollection = sourceObject.InvoiceRowGroupCollection;
             InvoiceEventDetailGroupCollection = sourceObject.InvoiceEventDetailGroupCollection;
 }
        public static InvoiceUser CreateDemoDefault()
        {
            InvoiceUser customDemo = null;
                    InvoiceUser.CreateCustomDemo(ref customDemo);
                    if(customDemo != null)
                        return customDemo;
                    var result = new InvoiceUser();
                    result.UserName = @"InvoiceUser.UserName";

                    result.UserID = @"InvoiceUser.UserID";

                    result.UserPhoneNumber = @"InvoiceUser.UserPhoneNumber";

                    result.UserSubscriptionNumber = @"InvoiceUser.UserSubscriptionNumber";

                    result.UserInvoiceTotalAmount = @"InvoiceUser.UserInvoiceTotalAmount";

                    result.InvoiceRowGroupCollection = InvoiceRowGroupCollection.CreateDemoDefault();
                    result.InvoiceEventDetailGroupCollection = InvoiceEventDetailGroupCollection.CreateDemoDefault();

                    return result;
        }
partial         static void CreateCustomDemo(ref InvoiceUser customDemoObject);
 public static InvoiceUser CreateDefault()
 {
     var result = new InvoiceUser();
             result.InvoiceRowGroupCollection = InvoiceRowGroupCollection.CreateDefault();
             result.InvoiceEventDetailGroupCollection = InvoiceEventDetailGroupCollection.CreateDefault();
             return result;
 }