#pragma warning disable 649    // disable compiler warnings about unassigned fields

namespace PagingIPagedCollectionView.Web.Models
{
	using System;
	using System.Collections.Generic;
	using System.ComponentModel;
	using System.ComponentModel.DataAnnotations;
	using System.Linq;
	using System.Web.DomainServices;
	using System.Web.Ria;
	using System.Web.Ria.Services;


	// The MetadataTypeAttribute identifies InvoiceMetadata as the class
	// that carries additional metadata for the Invoice class.
	[MetadataTypeAttribute(typeof(Invoice.InvoiceMetadata))]
	public partial class Invoice
	{

		// This class allows you to attach custom attributes to properties
		// of the Invoice class.
		//
		// For example, the following marks the Xyz property as a
		// required field and specifies the format for valid values:
		//    [Required]
		//    [RegularExpression("[A-Z][A-Za-z0-9]*")]
		//    [StringLength(32)]
		//    public string Xyz;
		internal sealed class InvoiceMetadata
		{

			// Metadata classes are not meant to be instantiated.
			private InvoiceMetadata()
			{
			}

			public string BillingAddress;

			public string BillingCity;

			public string BillingCountry;

			public string BillingPostalCode;

			public string BillingState;

			public int CustomerId;

			public DateTime InvoiceDate;

			public int InvoiceId;

			public decimal Total;
		}
	}
}

#pragma warning restore 649    // re-enable compiler warnings about unassigned fields
