//---------------------------------------------------------------------------------------------
// This file was AUTO-GENERATED by "EF Domain Objects" Xomega.Net generator.
//
// Manual CHANGES to this file WILL BE LOST when the code is regenerated.
//---------------------------------------------------------------------------------------------

using System;

namespace AdventureWorks.Services.Entities
{
    ///<summary>
    /// Customer reviews of products they have purchased.
    ///</summary>
    public partial class ProductReview
    {
        public ProductReview()
        {
        }

        #region Properties

        public int ProductReviewId  { get; set; }

        ///<summary>
        /// Product identification number. Foreign key to Product.ProductID.
        ///</summary>
        public int ProductId  { get; set; }

        ///<summary>
        /// Name of the reviewer.
        ///</summary>
        public string ReviewerName  { get; set; }

        ///<summary>
        /// Date review was submitted.
        ///</summary>
        public DateTime ReviewDate  { get; set; }

        ///<summary>
        /// Reviewer's e-mail address.
        ///</summary>
        public string EmailAddress  { get; set; }

        ///<summary>
        /// Product rating given by the reviewer. Scale is 1 to 5 with 5 as the highest rating.
        ///</summary>
        public int Rating  { get; set; }

        ///<summary>
        /// Reviewer's comments
        ///</summary>
        public string Comments  { get; set; }

        ///<summary>
        /// Date and time the record was last updated.
        ///</summary>
        public DateTime ModifiedDate  { get; set; }

        #endregion

        #region Navigation Properties

        ///<summary>
        /// Product object referenced by the field ProductId.
        ///</summary>
        public virtual Product ProductObject { get; set; }

        #endregion
    }
}