//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:2.0.50727.3053
//
//     对此文件的更改可能会导致不正确的行为，并且如果
//     重新生成代码，这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

[assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()]
[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("BookDemoModel", "FK__QAAnswer__QId__35BCFE0A", "QAQuestion", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(BookDemo.QA.QAQuestion), "QAAnswer", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BookDemo.QA.QAAnswer))]
[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("BookDemoModel", "FK__QAAnswer__UserNa__36B12243", "QAUserInfo", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(BookDemo.QA.QAUserInfo), "QAAnswer", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BookDemo.QA.QAAnswer))]
[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("BookDemoModel", "FK__QAQuestio__Catal__29572725", "QACatalog", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(BookDemo.QA.QACatalog), "QAQuestion", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BookDemo.QA.QAQuestion))]
[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("BookDemoModel", "FK__QAQuestio__UserN__2A4B4B5E", "QAUserInfo", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(BookDemo.QA.QAUserInfo), "QAQuestion", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BookDemo.QA.QAQuestion))]

// 原始文件名:
// 生成日期: 2009/2/21 15:38:45
namespace BookDemo.QA
{
    
    /// <summary>
    /// 架构中不存在 BookDemoEntities 的注释。
    /// </summary>
    public partial class BookDemoEntities : global::System.Data.Objects.ObjectContext
    {
        /// <summary>
        /// 请使用应用程序配置文件的“BookDemoEntities”部分中的连接字符串初始化新 BookDemoEntities 对象。
        /// </summary>
        public BookDemoEntities() : 
                base("name=BookDemoEntities", "BookDemoEntities")
        {
            this.OnContextCreated();
        }
        /// <summary>
        /// 初始化新的 BookDemoEntities 对象。
        /// </summary>
        public BookDemoEntities(string connectionString) : 
                base(connectionString, "BookDemoEntities")
        {
            this.OnContextCreated();
        }
        /// <summary>
        /// 初始化新的 BookDemoEntities 对象。
        /// </summary>
        public BookDemoEntities(global::System.Data.EntityClient.EntityConnection connection) : 
                base(connection, "BookDemoEntities")
        {
            this.OnContextCreated();
        }
        partial void OnContextCreated();
        /// <summary>
        /// 架构中不存在 QAAnswer 的注释。
        /// </summary>
        public global::System.Data.Objects.ObjectQuery<QAAnswer> QAAnswer
        {
            get
            {
                if ((this._QAAnswer == null))
                {
                    this._QAAnswer = base.CreateQuery<QAAnswer>("[QAAnswer]");
                }
                return this._QAAnswer;
            }
        }
        private global::System.Data.Objects.ObjectQuery<QAAnswer> _QAAnswer;
        /// <summary>
        /// 架构中不存在 QACatalog 的注释。
        /// </summary>
        public global::System.Data.Objects.ObjectQuery<QACatalog> QACatalog
        {
            get
            {
                if ((this._QACatalog == null))
                {
                    this._QACatalog = base.CreateQuery<QACatalog>("[QACatalog]");
                }
                return this._QACatalog;
            }
        }
        private global::System.Data.Objects.ObjectQuery<QACatalog> _QACatalog;
        /// <summary>
        /// 架构中不存在 QAConfig 的注释。
        /// </summary>
        public global::System.Data.Objects.ObjectQuery<QAConfig> QAConfig
        {
            get
            {
                if ((this._QAConfig == null))
                {
                    this._QAConfig = base.CreateQuery<QAConfig>("[QAConfig]");
                }
                return this._QAConfig;
            }
        }
        private global::System.Data.Objects.ObjectQuery<QAConfig> _QAConfig;
        /// <summary>
        /// 架构中不存在 QAQuestion 的注释。
        /// </summary>
        public global::System.Data.Objects.ObjectQuery<QAQuestion> QAQuestion
        {
            get
            {
                if ((this._QAQuestion == null))
                {
                    this._QAQuestion = base.CreateQuery<QAQuestion>("[QAQuestion]");
                }
                return this._QAQuestion;
            }
        }
        private global::System.Data.Objects.ObjectQuery<QAQuestion> _QAQuestion;
        /// <summary>
        /// 架构中不存在 QAUserInfo 的注释。
        /// </summary>
        public global::System.Data.Objects.ObjectQuery<QAUserInfo> QAUserInfo
        {
            get
            {
                if ((this._QAUserInfo == null))
                {
                    this._QAUserInfo = base.CreateQuery<QAUserInfo>("[QAUserInfo]");
                }
                return this._QAUserInfo;
            }
        }
        private global::System.Data.Objects.ObjectQuery<QAUserInfo> _QAUserInfo;
        /// <summary>
        /// 架构中不存在 QAAnswer 的注释。
        /// </summary>
        public void AddToQAAnswer(QAAnswer qAAnswer)
        {
            base.AddObject("QAAnswer", qAAnswer);
        }
        /// <summary>
        /// 架构中不存在 QACatalog 的注释。
        /// </summary>
        public void AddToQACatalog(QACatalog qACatalog)
        {
            base.AddObject("QACatalog", qACatalog);
        }
        /// <summary>
        /// 架构中不存在 QAConfig 的注释。
        /// </summary>
        public void AddToQAConfig(QAConfig qAConfig)
        {
            base.AddObject("QAConfig", qAConfig);
        }
        /// <summary>
        /// 架构中不存在 QAQuestion 的注释。
        /// </summary>
        public void AddToQAQuestion(QAQuestion qAQuestion)
        {
            base.AddObject("QAQuestion", qAQuestion);
        }
        /// <summary>
        /// 架构中不存在 QAUserInfo 的注释。
        /// </summary>
        public void AddToQAUserInfo(QAUserInfo qAUserInfo)
        {
            base.AddObject("QAUserInfo", qAUserInfo);
        }
        /// <summary>
        /// 架构中不存在 BookDemoModel.SpSearchQuestion 的注释。
        /// </summary>
        public global::System.Data.Objects.ObjectResult<QAQuestion> SpSearchQuestion(string keyword_Array)
        {
            global::System.Data.Objects.ObjectParameter keyword_ArrayParameter;
            if ((keyword_Array != null))
            {
                keyword_ArrayParameter = new global::System.Data.Objects.ObjectParameter("Keyword_Array", keyword_Array);
            }
            else
            {
                keyword_ArrayParameter = new global::System.Data.Objects.ObjectParameter("Keyword_Array", typeof(string));
            }
            return base.ExecuteFunction<QAQuestion>("SpSearchQuestion", keyword_ArrayParameter);
        }
    }
    /// <summary>
    /// 架构中不存在 BookDemoModel.QAAnswer 的注释。
    /// </summary>
    /// <KeyProperties>
    /// Id
    /// </KeyProperties>
    [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="BookDemoModel", Name="QAAnswer")]
    [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
    [global::System.Serializable()]
    public partial class QAAnswer : global::System.Data.Objects.DataClasses.EntityObject
    {
        /// <summary>
        /// 创建新的 QAAnswer 对象。
        /// </summary>
        /// <param name="id">Id 的初始值。</param>
        /// <param name="text">Text 的初始值。</param>
        /// <param name="bestAnswer">BestAnswer 的初始值。</param>
        /// <param name="postDatetime">PostDatetime 的初始值。</param>
        /// <param name="voteNice">VoteNice 的初始值。</param>
        /// <param name="voteBad">VoteBad 的初始值。</param>
        public static QAAnswer CreateQAAnswer(int id, string text, bool bestAnswer, global::System.DateTime postDatetime, int voteNice, int voteBad)
        {
            QAAnswer qAAnswer = new QAAnswer();
            qAAnswer.Id = id;
            qAAnswer.Text = text;
            qAAnswer.BestAnswer = bestAnswer;
            qAAnswer.PostDatetime = postDatetime;
            qAAnswer.VoteNice = voteNice;
            qAAnswer.VoteBad = voteBad;
            return qAAnswer;
        }
        /// <summary>
        /// 架构中不存在属性 Id 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int Id
        {
            get
            {
                return this._Id;
            }
            set
            {
                this.OnIdChanging(value);
                this.ReportPropertyChanging("Id");
                this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("Id");
                this.OnIdChanged();
            }
        }
        private int _Id;
        partial void OnIdChanging(int value);
        partial void OnIdChanged();
        /// <summary>
        /// 架构中不存在属性 Text 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string Text
        {
            get
            {
                return this._Text;
            }
            set
            {
                this.OnTextChanging(value);
                this.ReportPropertyChanging("Text");
                this._Text = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
                this.ReportPropertyChanged("Text");
                this.OnTextChanged();
            }
        }
        private string _Text;
        partial void OnTextChanging(string value);
        partial void OnTextChanged();
        /// <summary>
        /// 架构中不存在属性 BestAnswer 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public bool BestAnswer
        {
            get
            {
                return this._BestAnswer;
            }
            set
            {
                this.OnBestAnswerChanging(value);
                this.ReportPropertyChanging("BestAnswer");
                this._BestAnswer = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("BestAnswer");
                this.OnBestAnswerChanged();
            }
        }
        private bool _BestAnswer;
        partial void OnBestAnswerChanging(bool value);
        partial void OnBestAnswerChanged();
        /// <summary>
        /// 架构中不存在属性 PostDatetime 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.DateTime PostDatetime
        {
            get
            {
                return this._PostDatetime;
            }
            set
            {
                this.OnPostDatetimeChanging(value);
                this.ReportPropertyChanging("PostDatetime");
                this._PostDatetime = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("PostDatetime");
                this.OnPostDatetimeChanged();
            }
        }
        private global::System.DateTime _PostDatetime;
        partial void OnPostDatetimeChanging(global::System.DateTime value);
        partial void OnPostDatetimeChanged();
        /// <summary>
        /// 架构中不存在属性 VoteNice 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int VoteNice
        {
            get
            {
                return this._VoteNice;
            }
            set
            {
                this.OnVoteNiceChanging(value);
                this.ReportPropertyChanging("VoteNice");
                this._VoteNice = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("VoteNice");
                this.OnVoteNiceChanged();
            }
        }
        private int _VoteNice;
        partial void OnVoteNiceChanging(int value);
        partial void OnVoteNiceChanged();
        /// <summary>
        /// 架构中不存在属性 VoteBad 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int VoteBad
        {
            get
            {
                return this._VoteBad;
            }
            set
            {
                this.OnVoteBadChanging(value);
                this.ReportPropertyChanging("VoteBad");
                this._VoteBad = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("VoteBad");
                this.OnVoteBadChanged();
            }
        }
        private int _VoteBad;
        partial void OnVoteBadChanging(int value);
        partial void OnVoteBadChanged();
        /// <summary>
        /// 架构中不存在 QAQuestion 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("BookDemoModel", "FK__QAAnswer__QId__35BCFE0A", "QAQuestion")]
        [global::System.Xml.Serialization.XmlIgnoreAttribute()]
        [global::System.Xml.Serialization.SoapIgnoreAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public QAQuestion QAQuestion
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QAQuestion>("BookDemoModel.FK__QAAnswer__QId__35BCFE0A", "QAQuestion").Value;
            }
            set
            {
                ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QAQuestion>("BookDemoModel.FK__QAAnswer__QId__35BCFE0A", "QAQuestion").Value = value;
            }
        }
        /// <summary>
        /// 架构中不存在 QAQuestion 的注释。
        /// </summary>
        [global::System.ComponentModel.BrowsableAttribute(false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Data.Objects.DataClasses.EntityReference<QAQuestion> QAQuestionReference
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QAQuestion>("BookDemoModel.FK__QAAnswer__QId__35BCFE0A", "QAQuestion");
            }
            set
            {
                if ((value != null))
                {
                    ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<QAQuestion>("BookDemoModel.FK__QAAnswer__QId__35BCFE0A", "QAQuestion", value);
                }
            }
        }
        /// <summary>
        /// 架构中不存在 QAUserInfo 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("BookDemoModel", "FK__QAAnswer__UserNa__36B12243", "QAUserInfo")]
        [global::System.Xml.Serialization.XmlIgnoreAttribute()]
        [global::System.Xml.Serialization.SoapIgnoreAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public QAUserInfo QAUserInfo
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QAUserInfo>("BookDemoModel.FK__QAAnswer__UserNa__36B12243", "QAUserInfo").Value;
            }
            set
            {
                ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QAUserInfo>("BookDemoModel.FK__QAAnswer__UserNa__36B12243", "QAUserInfo").Value = value;
            }
        }
        /// <summary>
        /// 架构中不存在 QAUserInfo 的注释。
        /// </summary>
        [global::System.ComponentModel.BrowsableAttribute(false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Data.Objects.DataClasses.EntityReference<QAUserInfo> QAUserInfoReference
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QAUserInfo>("BookDemoModel.FK__QAAnswer__UserNa__36B12243", "QAUserInfo");
            }
            set
            {
                if ((value != null))
                {
                    ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<QAUserInfo>("BookDemoModel.FK__QAAnswer__UserNa__36B12243", "QAUserInfo", value);
                }
            }
        }
    }
    /// <summary>
    /// 架构中不存在 BookDemoModel.QACatalog 的注释。
    /// </summary>
    /// <KeyProperties>
    /// Id
    /// </KeyProperties>
    [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="BookDemoModel", Name="QACatalog")]
    [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
    [global::System.Serializable()]
    public partial class QACatalog : global::System.Data.Objects.DataClasses.EntityObject
    {
        /// <summary>
        /// 创建新的 QACatalog 对象。
        /// </summary>
        /// <param name="id">Id 的初始值。</param>
        /// <param name="parentID">ParentID 的初始值。</param>
        /// <param name="layer">Layer 的初始值。</param>
        /// <param name="name">Name 的初始值。</param>
        /// <param name="status">Status 的初始值。</param>
        /// <param name="displayOrder">DisplayOrder 的初始值。</param>
        public static QACatalog CreateQACatalog(int id, int parentID, int layer, string name, bool status, int displayOrder)
        {
            QACatalog qACatalog = new QACatalog();
            qACatalog.Id = id;
            qACatalog.ParentID = parentID;
            qACatalog.Layer = layer;
            qACatalog.Name = name;
            qACatalog.Status = status;
            qACatalog.DisplayOrder = displayOrder;
            return qACatalog;
        }
        /// <summary>
        /// 架构中不存在属性 Id 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int Id
        {
            get
            {
                return this._Id;
            }
            set
            {
                this.OnIdChanging(value);
                this.ReportPropertyChanging("Id");
                this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("Id");
                this.OnIdChanged();
            }
        }
        private int _Id;
        partial void OnIdChanging(int value);
        partial void OnIdChanged();
        /// <summary>
        /// 架构中不存在属性 ParentID 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int ParentID
        {
            get
            {
                return this._ParentID;
            }
            set
            {
                this.OnParentIDChanging(value);
                this.ReportPropertyChanging("ParentID");
                this._ParentID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("ParentID");
                this.OnParentIDChanged();
            }
        }
        private int _ParentID;
        partial void OnParentIDChanging(int value);
        partial void OnParentIDChanged();
        /// <summary>
        /// 架构中不存在属性 Layer 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int Layer
        {
            get
            {
                return this._Layer;
            }
            set
            {
                this.OnLayerChanging(value);
                this.ReportPropertyChanging("Layer");
                this._Layer = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("Layer");
                this.OnLayerChanged();
            }
        }
        private int _Layer;
        partial void OnLayerChanging(int value);
        partial void OnLayerChanged();
        /// <summary>
        /// 架构中不存在属性 Name 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string Name
        {
            get
            {
                return this._Name;
            }
            set
            {
                this.OnNameChanging(value);
                this.ReportPropertyChanging("Name");
                this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
                this.ReportPropertyChanged("Name");
                this.OnNameChanged();
            }
        }
        private string _Name;
        partial void OnNameChanging(string value);
        partial void OnNameChanged();
        /// <summary>
        /// 架构中不存在属性 Status 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public bool Status
        {
            get
            {
                return this._Status;
            }
            set
            {
                this.OnStatusChanging(value);
                this.ReportPropertyChanging("Status");
                this._Status = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("Status");
                this.OnStatusChanged();
            }
        }
        private bool _Status;
        partial void OnStatusChanging(bool value);
        partial void OnStatusChanged();
        /// <summary>
        /// 架构中不存在属性 DisplayOrder 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int DisplayOrder
        {
            get
            {
                return this._DisplayOrder;
            }
            set
            {
                this.OnDisplayOrderChanging(value);
                this.ReportPropertyChanging("DisplayOrder");
                this._DisplayOrder = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("DisplayOrder");
                this.OnDisplayOrderChanged();
            }
        }
        private int _DisplayOrder;
        partial void OnDisplayOrderChanging(int value);
        partial void OnDisplayOrderChanged();
        /// <summary>
        /// 架构中不存在 QAQuestion 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("BookDemoModel", "FK__QAQuestio__Catal__29572725", "QAQuestion")]
        [global::System.Xml.Serialization.XmlIgnoreAttribute()]
        [global::System.Xml.Serialization.SoapIgnoreAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Data.Objects.DataClasses.EntityCollection<QAQuestion> QAQuestion
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<QAQuestion>("BookDemoModel.FK__QAQuestio__Catal__29572725", "QAQuestion");
            }
            set
            {
                if ((value != null))
                {
                    ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<QAQuestion>("BookDemoModel.FK__QAQuestio__Catal__29572725", "QAQuestion", value);
                }
            }
        }
    }
    /// <summary>
    /// 架构中不存在 BookDemoModel.QAConfig 的注释。
    /// </summary>
    /// <KeyProperties>
    /// Id
    /// </KeyProperties>
    [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="BookDemoModel", Name="QAConfig")]
    [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
    [global::System.Serializable()]
    public partial class QAConfig : global::System.Data.Objects.DataClasses.EntityObject
    {
        /// <summary>
        /// 创建新的 QAConfig 对象。
        /// </summary>
        /// <param name="id">Id 的初始值。</param>
        /// <param name="solved">Solved 的初始值。</param>
        /// <param name="unsolve">Unsolve 的初始值。</param>
        public static QAConfig CreateQAConfig(int id, int solved, int unsolve)
        {
            QAConfig qAConfig = new QAConfig();
            qAConfig.Id = id;
            qAConfig.Solved = solved;
            qAConfig.Unsolve = unsolve;
            return qAConfig;
        }
        /// <summary>
        /// 架构中不存在属性 Id 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int Id
        {
            get
            {
                return this._Id;
            }
            set
            {
                this.OnIdChanging(value);
                this.ReportPropertyChanging("Id");
                this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("Id");
                this.OnIdChanged();
            }
        }
        private int _Id;
        partial void OnIdChanging(int value);
        partial void OnIdChanged();
        /// <summary>
        /// 架构中不存在属性 Solved 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int Solved
        {
            get
            {
                return this._Solved;
            }
            set
            {
                this.OnSolvedChanging(value);
                this.ReportPropertyChanging("Solved");
                this._Solved = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("Solved");
                this.OnSolvedChanged();
            }
        }
        private int _Solved;
        partial void OnSolvedChanging(int value);
        partial void OnSolvedChanged();
        /// <summary>
        /// 架构中不存在属性 Unsolve 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int Unsolve
        {
            get
            {
                return this._Unsolve;
            }
            set
            {
                this.OnUnsolveChanging(value);
                this.ReportPropertyChanging("Unsolve");
                this._Unsolve = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("Unsolve");
                this.OnUnsolveChanged();
            }
        }
        private int _Unsolve;
        partial void OnUnsolveChanging(int value);
        partial void OnUnsolveChanged();
    }
    /// <summary>
    /// 架构中不存在 BookDemoModel.QAQuestion 的注释。
    /// </summary>
    /// <KeyProperties>
    /// Id
    /// </KeyProperties>
    [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="BookDemoModel", Name="QAQuestion")]
    [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
    [global::System.Serializable()]
    public partial class QAQuestion : global::System.Data.Objects.DataClasses.EntityObject
    {
        /// <summary>
        /// 创建新的 QAQuestion 对象。
        /// </summary>
        /// <param name="id">Id 的初始值。</param>
        /// <param name="title">Title 的初始值。</param>
        /// <param name="text">Text 的初始值。</param>
        /// <param name="mark">Mark 的初始值。</param>
        /// <param name="postDatetime">PostDatetime 的初始值。</param>
        /// <param name="state">State 的初始值。</param>
        public static QAQuestion CreateQAQuestion(int id, string title, string text, int mark, global::System.DateTime postDatetime, int state)
        {
            QAQuestion qAQuestion = new QAQuestion();
            qAQuestion.Id = id;
            qAQuestion.Title = title;
            qAQuestion.Text = text;
            qAQuestion.Mark = mark;
            qAQuestion.PostDatetime = postDatetime;
            qAQuestion.State = state;
            return qAQuestion;
        }
        /// <summary>
        /// 架构中不存在属性 Id 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int Id
        {
            get
            {
                return this._Id;
            }
            set
            {
                this.OnIdChanging(value);
                this.ReportPropertyChanging("Id");
                this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("Id");
                this.OnIdChanged();
            }
        }
        private int _Id;
        partial void OnIdChanging(int value);
        partial void OnIdChanged();
        /// <summary>
        /// 架构中不存在属性 Title 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string Title
        {
            get
            {
                return this._Title;
            }
            set
            {
                this.OnTitleChanging(value);
                this.ReportPropertyChanging("Title");
                this._Title = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
                this.ReportPropertyChanged("Title");
                this.OnTitleChanged();
            }
        }
        private string _Title;
        partial void OnTitleChanging(string value);
        partial void OnTitleChanged();
        /// <summary>
        /// 架构中不存在属性 Text 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string Text
        {
            get
            {
                return this._Text;
            }
            set
            {
                this.OnTextChanging(value);
                this.ReportPropertyChanging("Text");
                this._Text = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
                this.ReportPropertyChanged("Text");
                this.OnTextChanged();
            }
        }
        private string _Text;
        partial void OnTextChanging(string value);
        partial void OnTextChanged();
        /// <summary>
        /// 架构中不存在属性 AdditionText 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string AdditionText
        {
            get
            {
                return this._AdditionText;
            }
            set
            {
                this.OnAdditionTextChanging(value);
                this.ReportPropertyChanging("AdditionText");
                this._AdditionText = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
                this.ReportPropertyChanged("AdditionText");
                this.OnAdditionTextChanged();
            }
        }
        private string _AdditionText;
        partial void OnAdditionTextChanging(string value);
        partial void OnAdditionTextChanged();
        /// <summary>
        /// 架构中不存在属性 Mark 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int Mark
        {
            get
            {
                return this._Mark;
            }
            set
            {
                this.OnMarkChanging(value);
                this.ReportPropertyChanging("Mark");
                this._Mark = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("Mark");
                this.OnMarkChanged();
            }
        }
        private int _Mark;
        partial void OnMarkChanging(int value);
        partial void OnMarkChanged();
        /// <summary>
        /// 架构中不存在属性 PostDatetime 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.DateTime PostDatetime
        {
            get
            {
                return this._PostDatetime;
            }
            set
            {
                this.OnPostDatetimeChanging(value);
                this.ReportPropertyChanging("PostDatetime");
                this._PostDatetime = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("PostDatetime");
                this.OnPostDatetimeChanged();
            }
        }
        private global::System.DateTime _PostDatetime;
        partial void OnPostDatetimeChanging(global::System.DateTime value);
        partial void OnPostDatetimeChanged();
        /// <summary>
        /// 架构中不存在属性 State 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public int State
        {
            get
            {
                return this._State;
            }
            set
            {
                this.OnStateChanging(value);
                this.ReportPropertyChanging("State");
                this._State = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("State");
                this.OnStateChanged();
            }
        }
        private int _State;
        partial void OnStateChanging(int value);
        partial void OnStateChanged();
        /// <summary>
        /// 架构中不存在 QAAnswer 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("BookDemoModel", "FK__QAAnswer__QId__35BCFE0A", "QAAnswer")]
        [global::System.Xml.Serialization.XmlIgnoreAttribute()]
        [global::System.Xml.Serialization.SoapIgnoreAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Data.Objects.DataClasses.EntityCollection<QAAnswer> QAAnswer
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<QAAnswer>("BookDemoModel.FK__QAAnswer__QId__35BCFE0A", "QAAnswer");
            }
            set
            {
                if ((value != null))
                {
                    ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<QAAnswer>("BookDemoModel.FK__QAAnswer__QId__35BCFE0A", "QAAnswer", value);
                }
            }
        }
        /// <summary>
        /// 架构中不存在 QACatalog 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("BookDemoModel", "FK__QAQuestio__Catal__29572725", "QACatalog")]
        [global::System.Xml.Serialization.XmlIgnoreAttribute()]
        [global::System.Xml.Serialization.SoapIgnoreAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public QACatalog QACatalog
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QACatalog>("BookDemoModel.FK__QAQuestio__Catal__29572725", "QACatalog").Value;
            }
            set
            {
                ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QACatalog>("BookDemoModel.FK__QAQuestio__Catal__29572725", "QACatalog").Value = value;
            }
        }
        /// <summary>
        /// 架构中不存在 QACatalog 的注释。
        /// </summary>
        [global::System.ComponentModel.BrowsableAttribute(false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Data.Objects.DataClasses.EntityReference<QACatalog> QACatalogReference
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QACatalog>("BookDemoModel.FK__QAQuestio__Catal__29572725", "QACatalog");
            }
            set
            {
                if ((value != null))
                {
                    ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<QACatalog>("BookDemoModel.FK__QAQuestio__Catal__29572725", "QACatalog", value);
                }
            }
        }
        /// <summary>
        /// 架构中不存在 QAUserInfo 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("BookDemoModel", "FK__QAQuestio__UserN__2A4B4B5E", "QAUserInfo")]
        [global::System.Xml.Serialization.XmlIgnoreAttribute()]
        [global::System.Xml.Serialization.SoapIgnoreAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public QAUserInfo QAUserInfo
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QAUserInfo>("BookDemoModel.FK__QAQuestio__UserN__2A4B4B5E", "QAUserInfo").Value;
            }
            set
            {
                ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QAUserInfo>("BookDemoModel.FK__QAQuestio__UserN__2A4B4B5E", "QAUserInfo").Value = value;
            }
        }
        /// <summary>
        /// 架构中不存在 QAUserInfo 的注释。
        /// </summary>
        [global::System.ComponentModel.BrowsableAttribute(false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Data.Objects.DataClasses.EntityReference<QAUserInfo> QAUserInfoReference
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<QAUserInfo>("BookDemoModel.FK__QAQuestio__UserN__2A4B4B5E", "QAUserInfo");
            }
            set
            {
                if ((value != null))
                {
                    ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<QAUserInfo>("BookDemoModel.FK__QAQuestio__UserN__2A4B4B5E", "QAUserInfo", value);
                }
            }
        }
    }
    /// <summary>
    /// 架构中不存在 BookDemoModel.QAUserInfo 的注释。
    /// </summary>
    /// <KeyProperties>
    /// UserName
    /// </KeyProperties>
    [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="BookDemoModel", Name="QAUserInfo")]
    [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
    [global::System.Serializable()]
    public partial class QAUserInfo : global::System.Data.Objects.DataClasses.EntityObject
    {
        /// <summary>
        /// 创建新的 QAUserInfo 对象。
        /// </summary>
        /// <param name="userName">UserName 的初始值。</param>
        public static QAUserInfo CreateQAUserInfo(string userName)
        {
            QAUserInfo qAUserInfo = new QAUserInfo();
            qAUserInfo.UserName = userName;
            return qAUserInfo;
        }
        /// <summary>
        /// 架构中不存在属性 UserName 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public string UserName
        {
            get
            {
                return this._UserName;
            }
            set
            {
                this.OnUserNameChanging(value);
                this.ReportPropertyChanging("UserName");
                this._UserName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
                this.ReportPropertyChanged("UserName");
                this.OnUserNameChanged();
            }
        }
        private string _UserName;
        partial void OnUserNameChanging(string value);
        partial void OnUserNameChanged();
        /// <summary>
        /// 架构中不存在属性 Mark 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> Mark
        {
            get
            {
                return this._Mark;
            }
            set
            {
                this.OnMarkChanging(value);
                this.ReportPropertyChanging("Mark");
                this._Mark = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("Mark");
                this.OnMarkChanged();
            }
        }
        private global::System.Nullable<int> _Mark;
        partial void OnMarkChanging(global::System.Nullable<int> value);
        partial void OnMarkChanged();
        /// <summary>
        /// 架构中不存在属性 AnswerMark 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> AnswerMark
        {
            get
            {
                return this._AnswerMark;
            }
            set
            {
                this.OnAnswerMarkChanging(value);
                this.ReportPropertyChanging("AnswerMark");
                this._AnswerMark = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("AnswerMark");
                this.OnAnswerMarkChanged();
            }
        }
        private global::System.Nullable<int> _AnswerMark;
        partial void OnAnswerMarkChanging(global::System.Nullable<int> value);
        partial void OnAnswerMarkChanged();
        /// <summary>
        /// 架构中不存在属性 RewardMark 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> RewardMark
        {
            get
            {
                return this._RewardMark;
            }
            set
            {
                this.OnRewardMarkChanging(value);
                this.ReportPropertyChanging("RewardMark");
                this._RewardMark = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("RewardMark");
                this.OnRewardMarkChanged();
            }
        }
        private global::System.Nullable<int> _RewardMark;
        partial void OnRewardMarkChanging(global::System.Nullable<int> value);
        partial void OnRewardMarkChanged();
        /// <summary>
        /// 架构中不存在属性 PaidMark 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> PaidMark
        {
            get
            {
                return this._PaidMark;
            }
            set
            {
                this.OnPaidMarkChanging(value);
                this.ReportPropertyChanging("PaidMark");
                this._PaidMark = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("PaidMark");
                this.OnPaidMarkChanged();
            }
        }
        private global::System.Nullable<int> _PaidMark;
        partial void OnPaidMarkChanging(global::System.Nullable<int> value);
        partial void OnPaidMarkChanged();
        /// <summary>
        /// 架构中不存在属性 PunishMark 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> PunishMark
        {
            get
            {
                return this._PunishMark;
            }
            set
            {
                this.OnPunishMarkChanging(value);
                this.ReportPropertyChanging("PunishMark");
                this._PunishMark = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("PunishMark");
                this.OnPunishMarkChanged();
            }
        }
        private global::System.Nullable<int> _PunishMark;
        partial void OnPunishMarkChanging(global::System.Nullable<int> value);
        partial void OnPunishMarkChanged();
        /// <summary>
        /// 架构中不存在属性 SolvedQuestion 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> SolvedQuestion
        {
            get
            {
                return this._SolvedQuestion;
            }
            set
            {
                this.OnSolvedQuestionChanging(value);
                this.ReportPropertyChanging("SolvedQuestion");
                this._SolvedQuestion = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("SolvedQuestion");
                this.OnSolvedQuestionChanged();
            }
        }
        private global::System.Nullable<int> _SolvedQuestion;
        partial void OnSolvedQuestionChanging(global::System.Nullable<int> value);
        partial void OnSolvedQuestionChanged();
        /// <summary>
        /// 架构中不存在属性 AnswerCount 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> AnswerCount
        {
            get
            {
                return this._AnswerCount;
            }
            set
            {
                this.OnAnswerCountChanging(value);
                this.ReportPropertyChanging("AnswerCount");
                this._AnswerCount = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("AnswerCount");
                this.OnAnswerCountChanged();
            }
        }
        private global::System.Nullable<int> _AnswerCount;
        partial void OnAnswerCountChanging(global::System.Nullable<int> value);
        partial void OnAnswerCountChanged();
        /// <summary>
        /// 架构中不存在属性 AnswerAcceptCount 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> AnswerAcceptCount
        {
            get
            {
                return this._AnswerAcceptCount;
            }
            set
            {
                this.OnAnswerAcceptCountChanging(value);
                this.ReportPropertyChanging("AnswerAcceptCount");
                this._AnswerAcceptCount = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("AnswerAcceptCount");
                this.OnAnswerAcceptCountChanged();
            }
        }
        private global::System.Nullable<int> _AnswerAcceptCount;
        partial void OnAnswerAcceptCountChanging(global::System.Nullable<int> value);
        partial void OnAnswerAcceptCountChanged();
        /// <summary>
        /// 架构中不存在属性 QuestionSolvedCount 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> QuestionSolvedCount
        {
            get
            {
                return this._QuestionSolvedCount;
            }
            set
            {
                this.OnQuestionSolvedCountChanging(value);
                this.ReportPropertyChanging("QuestionSolvedCount");
                this._QuestionSolvedCount = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("QuestionSolvedCount");
                this.OnQuestionSolvedCountChanged();
            }
        }
        private global::System.Nullable<int> _QuestionSolvedCount;
        partial void OnQuestionSolvedCountChanging(global::System.Nullable<int> value);
        partial void OnQuestionSolvedCountChanged();
        /// <summary>
        /// 架构中不存在属性 QuestionUnsolveCount 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> QuestionUnsolveCount
        {
            get
            {
                return this._QuestionUnsolveCount;
            }
            set
            {
                this.OnQuestionUnsolveCountChanging(value);
                this.ReportPropertyChanging("QuestionUnsolveCount");
                this._QuestionUnsolveCount = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("QuestionUnsolveCount");
                this.OnQuestionUnsolveCountChanged();
            }
        }
        private global::System.Nullable<int> _QuestionUnsolveCount;
        partial void OnQuestionUnsolveCountChanging(global::System.Nullable<int> value);
        partial void OnQuestionUnsolveCountChanged();
        /// <summary>
        /// 架构中不存在属性 QuestionCancelledCount 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Nullable<int> QuestionCancelledCount
        {
            get
            {
                return this._QuestionCancelledCount;
            }
            set
            {
                this.OnQuestionCancelledCountChanging(value);
                this.ReportPropertyChanging("QuestionCancelledCount");
                this._QuestionCancelledCount = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
                this.ReportPropertyChanged("QuestionCancelledCount");
                this.OnQuestionCancelledCountChanged();
            }
        }
        private global::System.Nullable<int> _QuestionCancelledCount;
        partial void OnQuestionCancelledCountChanging(global::System.Nullable<int> value);
        partial void OnQuestionCancelledCountChanged();
        /// <summary>
        /// 架构中不存在 QAAnswer 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("BookDemoModel", "FK__QAAnswer__UserNa__36B12243", "QAAnswer")]
        [global::System.Xml.Serialization.XmlIgnoreAttribute()]
        [global::System.Xml.Serialization.SoapIgnoreAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Data.Objects.DataClasses.EntityCollection<QAAnswer> QAAnswer
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<QAAnswer>("BookDemoModel.FK__QAAnswer__UserNa__36B12243", "QAAnswer");
            }
            set
            {
                if ((value != null))
                {
                    ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<QAAnswer>("BookDemoModel.FK__QAAnswer__UserNa__36B12243", "QAAnswer", value);
                }
            }
        }
        /// <summary>
        /// 架构中不存在 QAQuestion 的注释。
        /// </summary>
        [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("BookDemoModel", "FK__QAQuestio__UserN__2A4B4B5E", "QAQuestion")]
        [global::System.Xml.Serialization.XmlIgnoreAttribute()]
        [global::System.Xml.Serialization.SoapIgnoreAttribute()]
        [global::System.Runtime.Serialization.DataMemberAttribute()]
        public global::System.Data.Objects.DataClasses.EntityCollection<QAQuestion> QAQuestion
        {
            get
            {
                return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<QAQuestion>("BookDemoModel.FK__QAQuestio__UserN__2A4B4B5E", "QAQuestion");
            }
            set
            {
                if ((value != null))
                {
                    ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<QAQuestion>("BookDemoModel.FK__QAQuestio__UserN__2A4B4B5E", "QAQuestion", value);
                }
            }
        }
    }
}
