
namespace RIAPoweredSilverlightApplication.Web.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Linq;
    using System.ServiceModel.DomainServices.Hosting;
    using System.ServiceModel.DomainServices.Server;
    using RIAPoweredSilverlightApplication.Web.Validation;


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

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

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

            public string Class { get; set; }

            public string Color { get; set; }

            public int DaysToManufacture { get; set; }

            public Nullable<DateTime> DiscontinuedDate { get; set; }

            public bool FinishedGoodsFlag { get; set; }

            public decimal ListPrice { get; set; }

            public bool MakeFlag { get; set; }

            public DateTime ModifiedDate { get; set; }

            public string Name { get; set; }

            public int ProductID { get; set; }

            public string ProductLine { get; set; }

            public Nullable<int> ProductModelID { get; set; }

            public string ProductNumber { get; set; }

            public Nullable<int> ProductSubcategoryID { get; set; }

            public short ReorderPoint { get; set; }

            public Guid rowguid { get; set; }

            public short SafetyStockLevel { get; set; }

            public Nullable<DateTime> SellEndDate { get; set; }

            public DateTime SellStartDate { get; set; }

            public string Size { get; set; }

            public string SizeUnitMeasureCode { get; set; }

            public decimal StandardCost { get; set; }

            public string Style { get; set; }

            public Nullable<decimal> Weight { get; set; }

            public string WeightUnitMeasureCode { get; set; }
        }
    }

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

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

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

            public DateTime ModifiedDate { get; set; }

            [CustomValidation(typeof(ProductCategoryValidator), "ProductCategoryNameValid")]
            public string Name { get; set; }

            public int ProductCategoryID { get; set; }

            public Guid rowguid { get; set; }
        }
    }
}
