//------------------------------------------------------------------------------
    // <auto-generated>
    //     此代码由工具生成。
    //     运行库版本:2.0.50727.1433
    //
    //     对此文件的更改可能会导致不正确的行为，并且如果
    //     重新生成代码，这些更改将会丢失。
    // </auto-generated>
    //------------------------------------------------------------------------------
    
    namespace Aspxcn.Entities {
        using System;
        using System.Xml.Serialization;
        using NBear.Common;
        
        
        [System.SerializableAttribute()]
        public partial class ListsArrayList : NBear.Common.EntityArrayList<Aspxcn.Entities.Lists> {
        }
        
        [System.SerializableAttribute()]
        [NBear.Common.EmbeddedEntityConfigurationAttribute("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<EntityConfiguration xmlns:xsi=\"http://w" +
        "ww.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " +
        "name=\"Aspxcn.Entities.Lists\" isReadOnly=\"false\" isAutoPreLoad=\"false\" isBatchUpd" +
        "ate=\"false\" isRelation=\"false\" mappingName=\"Lists\" batchSize=\"10\">\r\n  <Propertie" +
        "s>\r\n    <Property name=\"ListId\" type=\"System.Int32\" isInherited=\"false\" isReadOn" +
        "ly=\"true\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey" +
        "=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isInde" +
        "xPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"ListId\" mapping" +
        "ColumnType=\"System.Int32\" sqlType=\"int\" isPrimaryKey=\"true\" isNotNull=\"true\" />\r" +
        "\n    <Property name=\"UserName\" type=\"System.String\" isInherited=\"false\" isReadOn" +
        "ly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKe" +
        "y=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isInd" +
        "exPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"UserName\" mapp" +
        "ingColumnType=\"System.String\" sqlType=\"nvarchar(50)\" isPrimaryKey=\"false\" isNotN" +
        "ull=\"false\" />\r\n    <Property name=\"Catalog\" type=\"System.Int32\" isInherited=\"fa" +
        "lse\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"fals" +
        "e\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=" +
        "\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"C" +
        "atalog\" mappingColumnType=\"System.Int32\" sqlType=\"int\" isPrimaryKey=\"false\" isNo" +
        "tNull=\"false\" />\r\n    <Property name=\"Class\" type=\"System.Int32\" isInherited=\"fa" +
        "lse\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"fals" +
        "e\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=" +
        "\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"C" +
        "lass\" mappingColumnType=\"System.Int32\" sqlType=\"int\" isPrimaryKey=\"false\" isNotN" +
        "ull=\"false\" />\r\n    <Property name=\"IsTop\" type=\"System.Boolean\" isInherited=\"fa" +
        "lse\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"fals" +
        "e\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=" +
        "\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"I" +
        "sTop\" mappingColumnType=\"System.Boolean\" sqlType=\"bit\" isPrimaryKey=\"false\" isNo" +
        "tNull=\"false\" />\r\n    <Property name=\"_Date\" type=\"System.DateTime\" isInherited=" +
        "\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"f" +
        "alse\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProper" +
        "ty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName" +
        "=\"_Date\" mappingColumnType=\"System.DateTime\" sqlType=\"datetime\" isPrimaryKey=\"fa" +
        "lse\" isNotNull=\"false\" />\r\n    <Property name=\"_Content\" type=\"System.String\" is" +
        "Inherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" " +
        "isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isI" +
        "ndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" m" +
        "appingName=\"_Content\" mappingColumnType=\"System.String\" sqlType=\"ntext\" isPrimar" +
        "yKey=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"_Title\" type=\"System.Stri" +
        "ng\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"f" +
        "alse\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"fals" +
        "e\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"fa" +
        "lse\" mappingName=\"_Title\" mappingColumnType=\"System.String\" sqlType=\"nvarchar(10" +
        "0)\" isPrimaryKey=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"Hits\" type=\"S" +
        "ystem.Int32\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isCon" +
        "tained=\"false\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelation" +
        "Key=\"false\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationI" +
        "gnore=\"false\" mappingName=\"Hits\" mappingColumnType=\"System.Int32\" sqlType=\"int\" " +
        "isPrimaryKey=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"Reply\" type=\"Syst" +
        "em.Int32\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContai" +
        "ned=\"false\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey" +
        "=\"false\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgno" +
        "re=\"false\" mappingName=\"Reply\" mappingColumnType=\"System.Int32\" sqlType=\"int\" is" +
        "PrimaryKey=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"Type\" type=\"System." +
        "Int32\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained" +
        "=\"false\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"f" +
        "alse\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=" +
        "\"false\" mappingName=\"Type\" mappingColumnType=\"System.Int32\" sqlType=\"int\" isPrim" +
        "aryKey=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"Email\" type=\"System.Str" +
        "ing\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"" +
        "false\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"fal" +
        "se\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"f" +
        "alse\" mappingName=\"Email\" mappingColumnType=\"System.String\" sqlType=\"nvarchar(50" +
        ")\" isPrimaryKey=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"Recommend\" typ" +
        "e=\"System.Boolean\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\"" +
        " isContained=\"false\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRe" +
        "lationKey=\"false\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializ" +
        "ationIgnore=\"false\" mappingName=\"Recommend\" mappingColumnType=\"System.Boolean\" s" +
        "qlType=\"bit\" isPrimaryKey=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"IP\" " +
        "type=\"System.String\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"fals" +
        "e\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" is" +
        "RelationKey=\"false\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerial" +
        "izationIgnore=\"false\" mappingName=\"IP\" mappingColumnType=\"System.String\" sqlType" +
        "=\"nvarchar(20)\" isPrimaryKey=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"C" +
        "atalog1\" type=\"Aspxcn.Entities.Catalog\" isInherited=\"false\" isReadOnly=\"true\" is" +
        "CompoundUnit=\"false\" isContained=\"false\" isQuery=\"true\" isFriendKey=\"false\" isLa" +
        "zyLoad=\"true\" queryWhere=\"{id} = @Catalog\" queryType=\"CustomQuery\" isRelationKey" +
        "=\"false\" relatedType=\"Aspxcn.Entities.Catalog\" isIndexProperty=\"false\" isIndexPr" +
        "opertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"Catalog1\" mappingC" +
        "olumnType=\"Aspxcn.Entities.Catalog\" sqlType=\"nvarchar(127)\" isPrimaryKey=\"false\"" +
        " isNotNull=\"false\" />\r\n  </Properties>\r\n</EntityConfiguration>")]
        public partial class Lists : NBear.Common.Entity {
            
            protected static NBear.Common.EntityConfiguration _ListsEntityConfiguration;
            
            protected int _ListId;
            
            protected string _UserName;
            
            protected int _Catalog;
            
            protected int _Class;
            
            protected bool _IsTop;
            
            protected global::System.DateTime @__Date;
            
            protected string @__Content;
            
            protected string @__Title;
            
            protected int _Hits;
            
            protected int _Reply;
            
            protected int _Type;
            
            protected string _Email;
            
            protected bool _Recommend;
            
            protected string _IP;
            
            protected global::Aspxcn.Entities.Catalog _Catalog1;
            
            public static @__Columns _ = new @__Columns();
            
    		public static bool operator ==(global::Aspxcn.Entities.Lists left, global::Aspxcn.Entities.Lists right) { return ((object)left) != null ? left.Equals(right) : ((object)right) == null ? true : false; }


    		public static bool operator !=(global::Aspxcn.Entities.Lists left, global::Aspxcn.Entities.Lists right) { return ((object)left) != null ? !left.Equals(right) : ((object)right) == null ? false : true; }


            
            public int ListId {
                get {
                    return this._ListId;
                }
                set {
                    this.OnPropertyChanged("ListId", this._ListId, value);
                    this._ListId = value;
                }
            }
            
            public string UserName {
                get {
                    return this._UserName;
                }
                set {
                    this.OnPropertyChanged("UserName", this._UserName, value);
                    this._UserName = value;
                }
            }
            
            public int Catalog {
                get {
                    return this._Catalog;
                }
                set {
                    this.OnPropertyChanged("Catalog", this._Catalog, value);
                    this._Catalog = value;
                }
            }
            
            public int Class {
                get {
                    return this._Class;
                }
                set {
                    this.OnPropertyChanged("Class", this._Class, value);
                    this._Class = value;
                }
            }
            
            public bool IsTop {
                get {
                    return this._IsTop;
                }
                set {
                    this.OnPropertyChanged("IsTop", this._IsTop, value);
                    this._IsTop = value;
                }
            }
            
            public global::System.DateTime _Date {
                get {
                    return this.@__Date;
                }
                set {
                    this.OnPropertyChanged("_Date", this.@__Date, value);
                    this.@__Date = value;
                }
            }
            
            public string _Content {
                get {
                    return this.@__Content;
                }
                set {
                    this.OnPropertyChanged("_Content", this.@__Content, value);
                    this.@__Content = value;
                }
            }
            
            public string _Title {
                get {
                    return this.@__Title;
                }
                set {
                    this.OnPropertyChanged("_Title", this.@__Title, value);
                    this.@__Title = value;
                }
            }
            
            public int Hits {
                get {
                    return this._Hits;
                }
                set {
                    this.OnPropertyChanged("Hits", this._Hits, value);
                    this._Hits = value;
                }
            }
            
            public int Reply {
                get {
                    return this._Reply;
                }
                set {
                    this.OnPropertyChanged("Reply", this._Reply, value);
                    this._Reply = value;
                }
            }
            
            public int Type {
                get {
                    return this._Type;
                }
                set {
                    this.OnPropertyChanged("Type", this._Type, value);
                    this._Type = value;
                }
            }
            
            public string Email {
                get {
                    return this._Email;
                }
                set {
                    this.OnPropertyChanged("Email", this._Email, value);
                    this._Email = value;
                }
            }
            
            public bool Recommend {
                get {
                    return this._Recommend;
                }
                set {
                    this.OnPropertyChanged("Recommend", this._Recommend, value);
                    this._Recommend = value;
                }
            }
            
            public string IP {
                get {
                    return this._IP;
                }
                set {
                    this.OnPropertyChanged("IP", this._IP, value);
                    this._IP = value;
                }
            }
            
            public global::Aspxcn.Entities.Catalog Catalog1 {
                get {
                    if (this.IsQueryPropertyLoaded("Catalog1")) {
                    }
                    else {
                        global::Aspxcn.Entities.Catalog _obj;
                        _obj = ((global::Aspxcn.Entities.Catalog)(this.QueryOne(typeof(global::Aspxcn.Entities.Catalog), "Catalog1", this)));
                        this.OnQueryOnePropertyChanged("Catalog1", this._Catalog1, _obj);
                        this._Catalog1 = _obj;
                    }
                    return this._Catalog1;
                }
            }
            
            public override NBear.Common.EntityConfiguration GetEntityConfiguration() {
                if ((Lists._ListsEntityConfiguration == null)) {
                    Lists._ListsEntityConfiguration = NBear.Common.MetaDataManager.GetEntityConfiguration("Aspxcn.Entities.Lists");
                }
                return Lists._ListsEntityConfiguration;
            }
            
            public override void ReloadQueries(bool includeLazyLoadQueries) {
                if ((includeLazyLoadQueries 
                            || (false == NBear.Common.MetaDataManager.IsLazyLoad("Aspxcn.Entities.Lists", "Catalog1")))) {
                    global::Aspxcn.Entities.Catalog _obj;
                    _obj = ((global::Aspxcn.Entities.Catalog)(this.QueryOne(typeof(global::Aspxcn.Entities.Catalog), "Catalog1", this)));
                    this.OnQueryOnePropertyChanged("Catalog1", this._Catalog1, _obj);
                    this._Catalog1 = _obj;
                }
            }
            
            public override object[] GetPropertyValues() {
                return new object[] {
                        this._ListId,
                        this._UserName,
                        this._Catalog,
                        this._Class,
                        this._IsTop,
                        this.@__Date,
                        this.@__Content,
                        this.@__Title,
                        this._Hits,
                        this._Reply,
                        this._Type,
                        this._Email,
                        this._Recommend,
                        this._IP};
            }
            
            public override void SetPropertyValues(System.Data.IDataReader reader) {
                if ((false == reader.IsDBNull(0))) {
                    this._ListId = reader.GetInt32(0);
                }
                if ((false == reader.IsDBNull(1))) {
                    this._UserName = reader.GetString(1);
                }
                if ((false == reader.IsDBNull(2))) {
                    this._Catalog = reader.GetInt32(2);
                }
                if ((false == reader.IsDBNull(3))) {
                    this._Class = reader.GetInt32(3);
                }
                if ((false == reader.IsDBNull(4))) {
                    this._IsTop = reader.GetBoolean(4);
                }
                if ((false == reader.IsDBNull(5))) {
                    this.@__Date = this.GetDateTime(reader, 5);
                }
                if ((false == reader.IsDBNull(6))) {
                    this.@__Content = reader.GetString(6);
                }
                if ((false == reader.IsDBNull(7))) {
                    this.@__Title = reader.GetString(7);
                }
                if ((false == reader.IsDBNull(8))) {
                    this._Hits = reader.GetInt32(8);
                }
                if ((false == reader.IsDBNull(9))) {
                    this._Reply = reader.GetInt32(9);
                }
                if ((false == reader.IsDBNull(10))) {
                    this._Type = reader.GetInt32(10);
                }
                if ((false == reader.IsDBNull(11))) {
                    this._Email = reader.GetString(11);
                }
                if ((false == reader.IsDBNull(12))) {
                    this._Recommend = reader.GetBoolean(12);
                }
                if ((false == reader.IsDBNull(13))) {
                    this._IP = reader.GetString(13);
                }
                this.ReloadQueries(false);
            }
            
            public override void SetPropertyValues(System.Data.DataRow row) {
                if ((false == row.IsNull(0))) {
                    this._ListId = ((int)(row[0]));
                }
                if ((false == row.IsNull(1))) {
                    this._UserName = ((string)(row[1]));
                }
                if ((false == row.IsNull(2))) {
                    this._Catalog = ((int)(row[2]));
                }
                if ((false == row.IsNull(3))) {
                    this._Class = ((int)(row[3]));
                }
                if ((false == row.IsNull(4))) {
                    this._IsTop = ((bool)(row[4]));
                }
                if ((false == row.IsNull(5))) {
                    this.@__Date = this.GetDateTime(row, 5);
                }
                if ((false == row.IsNull(6))) {
                    this.@__Content = ((string)(row[6]));
                }
                if ((false == row.IsNull(7))) {
                    this.@__Title = ((string)(row[7]));
                }
                if ((false == row.IsNull(8))) {
                    this._Hits = ((int)(row[8]));
                }
                if ((false == row.IsNull(9))) {
                    this._Reply = ((int)(row[9]));
                }
                if ((false == row.IsNull(10))) {
                    this._Type = ((int)(row[10]));
                }
                if ((false == row.IsNull(11))) {
                    this._Email = ((string)(row[11]));
                }
                if ((false == row.IsNull(12))) {
                    this._Recommend = ((bool)(row[12]));
                }
                if ((false == row.IsNull(13))) {
                    this._IP = ((string)(row[13]));
                }
                this.ReloadQueries(false);
            }
            
            public override int GetHashCode() {
                return base.GetHashCode();
            }
            
            public override bool Equals(object obj) {
                if ((obj == null)) {
                    return false;
                }
                if ((false == typeof(global::Aspxcn.Entities.Lists).IsAssignableFrom(obj.GetType()))) {
                    return false;
                }
                if ((((object)(this)) == ((object)(obj)))) {
                    return true;
                }
                return ((this.isAttached && ((global::Aspxcn.Entities.Lists)(obj)).isAttached) 
                            && (this.ListId == ((global::Aspxcn.Entities.Lists)(obj)).ListId));
            }
            
            public static @__Columns @__Alias(string aliasName) {
                return new @__Columns(aliasName);
            }
            
            public class @__Columns {
                
                protected string aliasName;
                
                protected NBear.Common.PropertyItem _ListId = new NBear.Common.PropertyItem("ListId", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem _UserName = new NBear.Common.PropertyItem("UserName", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem _Catalog = new NBear.Common.PropertyItem("Catalog", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem _Class = new NBear.Common.PropertyItem("Class", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem _IsTop = new NBear.Common.PropertyItem("IsTop", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem @__Date = new NBear.Common.PropertyItem("_Date", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem @__Content = new NBear.Common.PropertyItem("_Content", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem @__Title = new NBear.Common.PropertyItem("_Title", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem _Hits = new NBear.Common.PropertyItem("Hits", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem _Reply = new NBear.Common.PropertyItem("Reply", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem _Type = new NBear.Common.PropertyItem("Type", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem _Email = new NBear.Common.PropertyItem("Email", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem _Recommend = new NBear.Common.PropertyItem("Recommend", "Aspxcn.Entities.Lists");
                
                protected NBear.Common.PropertyItem _IP = new NBear.Common.PropertyItem("IP", "Aspxcn.Entities.Lists");
                
                public @__Columns() {
                }
                
                public @__Columns(string aliasName) {
                    this.aliasName = aliasName;
                }
                
                public NBear.Common.PropertyItem ListId {
                    get {
                        if ((aliasName == null)) {
                            return _ListId;
                        }
                        else {
                            return new NBear.Common.PropertyItem("ListId", _ListId.EntityConfiguration, _ListId.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem UserName {
                    get {
                        if ((aliasName == null)) {
                            return _UserName;
                        }
                        else {
                            return new NBear.Common.PropertyItem("UserName", _UserName.EntityConfiguration, _UserName.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Catalog {
                    get {
                        if ((aliasName == null)) {
                            return _Catalog;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Catalog", _Catalog.EntityConfiguration, _Catalog.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Class {
                    get {
                        if ((aliasName == null)) {
                            return _Class;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Class", _Class.EntityConfiguration, _Class.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem IsTop {
                    get {
                        if ((aliasName == null)) {
                            return _IsTop;
                        }
                        else {
                            return new NBear.Common.PropertyItem("IsTop", _IsTop.EntityConfiguration, _IsTop.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem _Date {
                    get {
                        if ((aliasName == null)) {
                            return @__Date;
                        }
                        else {
                            return new NBear.Common.PropertyItem("_Date", @__Date.EntityConfiguration, @__Date.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem _Content {
                    get {
                        if ((aliasName == null)) {
                            return @__Content;
                        }
                        else {
                            return new NBear.Common.PropertyItem("_Content", @__Content.EntityConfiguration, @__Content.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem _Title {
                    get {
                        if ((aliasName == null)) {
                            return @__Title;
                        }
                        else {
                            return new NBear.Common.PropertyItem("_Title", @__Title.EntityConfiguration, @__Title.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Hits {
                    get {
                        if ((aliasName == null)) {
                            return _Hits;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Hits", _Hits.EntityConfiguration, _Hits.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Reply {
                    get {
                        if ((aliasName == null)) {
                            return _Reply;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Reply", _Reply.EntityConfiguration, _Reply.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Type {
                    get {
                        if ((aliasName == null)) {
                            return _Type;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Type", _Type.EntityConfiguration, _Type.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Email {
                    get {
                        if ((aliasName == null)) {
                            return _Email;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Email", _Email.EntityConfiguration, _Email.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Recommend {
                    get {
                        if ((aliasName == null)) {
                            return _Recommend;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Recommend", _Recommend.EntityConfiguration, _Recommend.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem IP {
                    get {
                        if ((aliasName == null)) {
                            return _IP;
                        }
                        else {
                            return new NBear.Common.PropertyItem("IP", _IP.EntityConfiguration, _IP.PropertyConfiguration, aliasName);
                        }
                    }
                }
            }
        }
    }
    namespace Aspxcn.Entities {
        using System;
        using System.Xml.Serialization;
        using NBear.Common;
        
        
        [System.SerializableAttribute()]
        public partial class ReplyArrayList : NBear.Common.EntityArrayList<Aspxcn.Entities.Reply> {
        }
        
        [System.SerializableAttribute()]
        [NBear.Common.EmbeddedEntityConfigurationAttribute("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<EntityConfiguration xmlns:xsi=\"http://w" +
        "ww.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " +
        "name=\"Aspxcn.Entities.Reply\" isReadOnly=\"false\" isAutoPreLoad=\"false\" isBatchUpd" +
        "ate=\"false\" isRelation=\"false\" mappingName=\"Reply\" batchSize=\"10\">\r\n  <Propertie" +
        "s>\r\n    <Property name=\"id\" type=\"System.Int32\" isInherited=\"false\" isReadOnly=\"" +
        "true\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"fa" +
        "lse\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isIndexPro" +
        "pertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"id\" mappingColumnTy" +
        "pe=\"System.Int32\" sqlType=\"int\" isPrimaryKey=\"true\" isNotNull=\"true\" />\r\n    <Pr" +
        "operty name=\"TopIc_ID\" type=\"System.Int32\" isInherited=\"false\" isReadOnly=\"false" +
        "\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"false\"" +
        " isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"true\" isIndexProperty" +
        "Desc=\"false\" isSerializationIgnore=\"false\" mappingName=\"TopIc_ID\" mappingColumnT" +
        "ype=\"System.Int32\" sqlType=\"int\" isPrimaryKey=\"false\" isNotNull=\"true\" />\r\n    <" +
        "Property name=\"_Title\" type=\"System.String\" isInherited=\"false\" isReadOnly=\"fals" +
        "e\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"false" +
        "\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isIndexProper" +
        "tyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"_Title\" mappingColumnT" +
        "ype=\"System.String\" sqlType=\"nvarchar(100)\" isPrimaryKey=\"false\" isNotNull=\"fals" +
        "e\" />\r\n    <Property name=\"_Content\" type=\"System.String\" isInherited=\"false\" is" +
        "ReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFr" +
        "iendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\"" +
        " isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"_Content" +
        "\" mappingColumnType=\"System.String\" sqlType=\"ntext\" isPrimaryKey=\"false\" isNotNu" +
        "ll=\"false\" />\r\n    <Property name=\"UserName\" type=\"System.String\" isInherited=\"f" +
        "alse\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"fal" +
        "se\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty" +
        "=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"" +
        "UserName\" mappingColumnType=\"System.String\" sqlType=\"nvarchar(50)\" isPrimaryKey=" +
        "\"false\" isNotNull=\"false\" />\r\n    <Property name=\"Email\" type=\"System.String\" is" +
        "Inherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" " +
        "isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isI" +
        "ndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" m" +
        "appingName=\"Email\" mappingColumnType=\"System.String\" sqlType=\"nvarchar(50)\" isPr" +
        "imaryKey=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"IP\" type=\"System.Stri" +
        "ng\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"f" +
        "alse\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"fals" +
        "e\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"fa" +
        "lse\" mappingName=\"IP\" mappingColumnType=\"System.String\" sqlType=\"nchar(20)\" isPr" +
        "imaryKey=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"_DateTime\" type=\"Syst" +
        "em.DateTime\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isCon" +
        "tained=\"false\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelation" +
        "Key=\"false\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationI" +
        "gnore=\"false\" mappingName=\"_DateTime\" mappingColumnType=\"System.DateTime\" sqlTyp" +
        "e=\"datetime\" isPrimaryKey=\"false\" isNotNull=\"false\" />\r\n  </Properties>\r\n</Entit" +
        "yConfiguration>")]
        public partial class Reply : NBear.Common.Entity {
            
            protected static NBear.Common.EntityConfiguration _ReplyEntityConfiguration;
            
            protected int _id;
            
            protected int _TopIc_ID;
            
            protected string @__Title;
            
            protected string @__Content;
            
            protected string _UserName;
            
            protected string _Email;
            
            protected string _IP;
            
            protected global::System.DateTime @__DateTime;
            
            public static @__Columns _ = new @__Columns();
            
    		public static bool operator ==(global::Aspxcn.Entities.Reply left, global::Aspxcn.Entities.Reply right) { return ((object)left) != null ? left.Equals(right) : ((object)right) == null ? true : false; }


    		public static bool operator !=(global::Aspxcn.Entities.Reply left, global::Aspxcn.Entities.Reply right) { return ((object)left) != null ? !left.Equals(right) : ((object)right) == null ? false : true; }


            
            public int id {
                get {
                    return this._id;
                }
                set {
                    this.OnPropertyChanged("id", this._id, value);
                    this._id = value;
                }
            }
            
            public int TopIc_ID {
                get {
                    return this._TopIc_ID;
                }
                set {
                    this.OnPropertyChanged("TopIc_ID", this._TopIc_ID, value);
                    this._TopIc_ID = value;
                }
            }
            
            public string _Title {
                get {
                    return this.@__Title;
                }
                set {
                    this.OnPropertyChanged("_Title", this.@__Title, value);
                    this.@__Title = value;
                }
            }
            
            public string _Content {
                get {
                    return this.@__Content;
                }
                set {
                    this.OnPropertyChanged("_Content", this.@__Content, value);
                    this.@__Content = value;
                }
            }
            
            public string UserName {
                get {
                    return this._UserName;
                }
                set {
                    this.OnPropertyChanged("UserName", this._UserName, value);
                    this._UserName = value;
                }
            }
            
            public string Email {
                get {
                    return this._Email;
                }
                set {
                    this.OnPropertyChanged("Email", this._Email, value);
                    this._Email = value;
                }
            }
            
            public string IP {
                get {
                    return this._IP;
                }
                set {
                    this.OnPropertyChanged("IP", this._IP, value);
                    this._IP = value;
                }
            }
            
            public global::System.DateTime _DateTime {
                get {
                    return this.@__DateTime;
                }
                set {
                    this.OnPropertyChanged("_DateTime", this.@__DateTime, value);
                    this.@__DateTime = value;
                }
            }
            
            public override NBear.Common.EntityConfiguration GetEntityConfiguration() {
                if ((Reply._ReplyEntityConfiguration == null)) {
                    Reply._ReplyEntityConfiguration = NBear.Common.MetaDataManager.GetEntityConfiguration("Aspxcn.Entities.Reply");
                }
                return Reply._ReplyEntityConfiguration;
            }
            
            public override void ReloadQueries(bool includeLazyLoadQueries) {
            }
            
            public override object[] GetPropertyValues() {
                return new object[] {
                        this._id,
                        this._TopIc_ID,
                        this.@__Title,
                        this.@__Content,
                        this._UserName,
                        this._Email,
                        this._IP,
                        this.@__DateTime};
            }
            
            public override void SetPropertyValues(System.Data.IDataReader reader) {
                if ((false == reader.IsDBNull(0))) {
                    this._id = reader.GetInt32(0);
                }
                if ((false == reader.IsDBNull(1))) {
                    this._TopIc_ID = reader.GetInt32(1);
                }
                if ((false == reader.IsDBNull(2))) {
                    this.@__Title = reader.GetString(2);
                }
                if ((false == reader.IsDBNull(3))) {
                    this.@__Content = reader.GetString(3);
                }
                if ((false == reader.IsDBNull(4))) {
                    this._UserName = reader.GetString(4);
                }
                if ((false == reader.IsDBNull(5))) {
                    this._Email = reader.GetString(5);
                }
                if ((false == reader.IsDBNull(6))) {
                    this._IP = reader.GetString(6);
                }
                if ((false == reader.IsDBNull(7))) {
                    this.@__DateTime = this.GetDateTime(reader, 7);
                }
                this.ReloadQueries(false);
            }
            
            public override void SetPropertyValues(System.Data.DataRow row) {
                if ((false == row.IsNull(0))) {
                    this._id = ((int)(row[0]));
                }
                if ((false == row.IsNull(1))) {
                    this._TopIc_ID = ((int)(row[1]));
                }
                if ((false == row.IsNull(2))) {
                    this.@__Title = ((string)(row[2]));
                }
                if ((false == row.IsNull(3))) {
                    this.@__Content = ((string)(row[3]));
                }
                if ((false == row.IsNull(4))) {
                    this._UserName = ((string)(row[4]));
                }
                if ((false == row.IsNull(5))) {
                    this._Email = ((string)(row[5]));
                }
                if ((false == row.IsNull(6))) {
                    this._IP = ((string)(row[6]));
                }
                if ((false == row.IsNull(7))) {
                    this.@__DateTime = this.GetDateTime(row, 7);
                }
                this.ReloadQueries(false);
            }
            
            public override int GetHashCode() {
                return base.GetHashCode();
            }
            
            public override bool Equals(object obj) {
                if ((obj == null)) {
                    return false;
                }
                if ((false == typeof(global::Aspxcn.Entities.Reply).IsAssignableFrom(obj.GetType()))) {
                    return false;
                }
                if ((((object)(this)) == ((object)(obj)))) {
                    return true;
                }
                return ((this.isAttached && ((global::Aspxcn.Entities.Reply)(obj)).isAttached) 
                            && (this.id == ((global::Aspxcn.Entities.Reply)(obj)).id));
            }
            
            public static @__Columns @__Alias(string aliasName) {
                return new @__Columns(aliasName);
            }
            
            public class @__Columns {
                
                protected string aliasName;
                
                protected NBear.Common.PropertyItem _id = new NBear.Common.PropertyItem("id", "Aspxcn.Entities.Reply");
                
                protected NBear.Common.PropertyItem _TopIc_ID = new NBear.Common.PropertyItem("TopIc_ID", "Aspxcn.Entities.Reply");
                
                protected NBear.Common.PropertyItem @__Title = new NBear.Common.PropertyItem("_Title", "Aspxcn.Entities.Reply");
                
                protected NBear.Common.PropertyItem @__Content = new NBear.Common.PropertyItem("_Content", "Aspxcn.Entities.Reply");
                
                protected NBear.Common.PropertyItem _UserName = new NBear.Common.PropertyItem("UserName", "Aspxcn.Entities.Reply");
                
                protected NBear.Common.PropertyItem _Email = new NBear.Common.PropertyItem("Email", "Aspxcn.Entities.Reply");
                
                protected NBear.Common.PropertyItem _IP = new NBear.Common.PropertyItem("IP", "Aspxcn.Entities.Reply");
                
                protected NBear.Common.PropertyItem @__DateTime = new NBear.Common.PropertyItem("_DateTime", "Aspxcn.Entities.Reply");
                
                public @__Columns() {
                }
                
                public @__Columns(string aliasName) {
                    this.aliasName = aliasName;
                }
                
                public NBear.Common.PropertyItem id {
                    get {
                        if ((aliasName == null)) {
                            return _id;
                        }
                        else {
                            return new NBear.Common.PropertyItem("id", _id.EntityConfiguration, _id.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem TopIc_ID {
                    get {
                        if ((aliasName == null)) {
                            return _TopIc_ID;
                        }
                        else {
                            return new NBear.Common.PropertyItem("TopIc_ID", _TopIc_ID.EntityConfiguration, _TopIc_ID.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem _Title {
                    get {
                        if ((aliasName == null)) {
                            return @__Title;
                        }
                        else {
                            return new NBear.Common.PropertyItem("_Title", @__Title.EntityConfiguration, @__Title.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem _Content {
                    get {
                        if ((aliasName == null)) {
                            return @__Content;
                        }
                        else {
                            return new NBear.Common.PropertyItem("_Content", @__Content.EntityConfiguration, @__Content.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem UserName {
                    get {
                        if ((aliasName == null)) {
                            return _UserName;
                        }
                        else {
                            return new NBear.Common.PropertyItem("UserName", _UserName.EntityConfiguration, _UserName.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Email {
                    get {
                        if ((aliasName == null)) {
                            return _Email;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Email", _Email.EntityConfiguration, _Email.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem IP {
                    get {
                        if ((aliasName == null)) {
                            return _IP;
                        }
                        else {
                            return new NBear.Common.PropertyItem("IP", _IP.EntityConfiguration, _IP.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem _DateTime {
                    get {
                        if ((aliasName == null)) {
                            return @__DateTime;
                        }
                        else {
                            return new NBear.Common.PropertyItem("_DateTime", @__DateTime.EntityConfiguration, @__DateTime.PropertyConfiguration, aliasName);
                        }
                    }
                }
            }
        }
    }
    namespace Aspxcn.Entities {
        using System;
        using System.Xml.Serialization;
        using NBear.Common;
        
        
        [System.SerializableAttribute()]
        public partial class favArrayList : NBear.Common.EntityArrayList<Aspxcn.Entities.fav> {
        }
        
        [System.SerializableAttribute()]
        [NBear.Common.EmbeddedEntityConfigurationAttribute("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<EntityConfiguration xmlns:xsi=\"http://w" +
        "ww.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " +
        "name=\"Aspxcn.Entities.fav\" isReadOnly=\"false\" isAutoPreLoad=\"false\" isBatchUpdat" +
        "e=\"false\" isRelation=\"false\" mappingName=\"fav\" batchSize=\"10\">\r\n  <Properties>\r\n" +
        "    <Property name=\"Listid\" type=\"System.Int32\" isInherited=\"false\" isReadOnly=\"" +
        "true\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"fa" +
        "lse\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isIndexPro" +
        "pertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"Listid\" mappingColu" +
        "mnType=\"System.Int32\" sqlType=\"int\" isPrimaryKey=\"true\" isNotNull=\"true\" />\r\n   " +
        " <Property name=\"UserName\" type=\"System.String\" isInherited=\"false\" isReadOnly=\"" +
        "false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"f" +
        "alse\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isIndexPr" +
        "opertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"UserName\" mappingC" +
        "olumnType=\"System.String\" sqlType=\"nchar(10)\" isPrimaryKey=\"false\" isNotNull=\"fa" +
        "lse\" />\r\n    <Property name=\"Add_DateTime\" type=\"System.DateTime\" isInherited=\"f" +
        "alse\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"fal" +
        "se\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty" +
        "=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"" +
        "Add_DateTime\" mappingColumnType=\"System.DateTime\" sqlType=\"datetime\" isPrimaryKe" +
        "y=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"favID\" type=\"System.Int32\" i" +
        "sInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\"" +
        " isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" is" +
        "IndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" " +
        "mappingName=\"favID\" mappingColumnType=\"System.Int32\" sqlType=\"int\" isPrimaryKey=" +
        "\"false\" isNotNull=\"false\" />\r\n    <Property name=\"Lists\" type=\"Aspxcn.Entities.L" +
        "ists\" isInherited=\"false\" isReadOnly=\"true\" isCompoundUnit=\"false\" isContained=\"" +
        "false\" isQuery=\"true\" isFriendKey=\"false\" isLazyLoad=\"true\" queryWhere=\"{ListId}" +
        " = @favID\" queryType=\"CustomQuery\" isRelationKey=\"false\" relatedType=\"Aspxcn.Ent" +
        "ities.Lists\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerialization" +
        "Ignore=\"false\" mappingName=\"Lists\" mappingColumnType=\"Aspxcn.Entities.Lists\" sql" +
        "Type=\"nvarchar(127)\" isPrimaryKey=\"false\" isNotNull=\"false\" />\r\n  </Properties>\r" +
        "\n</EntityConfiguration>")]
        public partial class fav : NBear.Common.Entity {
            
            protected static NBear.Common.EntityConfiguration _favEntityConfiguration;
            
            protected int _Listid;
            
            protected string _UserName;
            
            protected global::System.DateTime _Add_DateTime;
            
            protected int _favID;
            
            protected global::Aspxcn.Entities.Lists _Lists;
            
            public static @__Columns _ = new @__Columns();
            
    		public static bool operator ==(global::Aspxcn.Entities.fav left, global::Aspxcn.Entities.fav right) { return ((object)left) != null ? left.Equals(right) : ((object)right) == null ? true : false; }


    		public static bool operator !=(global::Aspxcn.Entities.fav left, global::Aspxcn.Entities.fav right) { return ((object)left) != null ? !left.Equals(right) : ((object)right) == null ? false : true; }


            
            public int Listid {
                get {
                    return this._Listid;
                }
                set {
                    this.OnPropertyChanged("Listid", this._Listid, value);
                    this._Listid = value;
                }
            }
            
            public string UserName {
                get {
                    return this._UserName;
                }
                set {
                    this.OnPropertyChanged("UserName", this._UserName, value);
                    this._UserName = value;
                }
            }
            
            public global::System.DateTime Add_DateTime {
                get {
                    return this._Add_DateTime;
                }
                set {
                    this.OnPropertyChanged("Add_DateTime", this._Add_DateTime, value);
                    this._Add_DateTime = value;
                }
            }
            
            public int favID {
                get {
                    return this._favID;
                }
                set {
                    this.OnPropertyChanged("favID", this._favID, value);
                    this._favID = value;
                }
            }
            
            public global::Aspxcn.Entities.Lists Lists {
                get {
                    if (this.IsQueryPropertyLoaded("Lists")) {
                    }
                    else {
                        global::Aspxcn.Entities.Lists _obj;
                        _obj = ((global::Aspxcn.Entities.Lists)(this.QueryOne(typeof(global::Aspxcn.Entities.Lists), "Lists", this)));
                        this.OnQueryOnePropertyChanged("Lists", this._Lists, _obj);
                        this._Lists = _obj;
                    }
                    return this._Lists;
                }
            }
            
            public override NBear.Common.EntityConfiguration GetEntityConfiguration() {
                if ((fav._favEntityConfiguration == null)) {
                    fav._favEntityConfiguration = NBear.Common.MetaDataManager.GetEntityConfiguration("Aspxcn.Entities.fav");
                }
                return fav._favEntityConfiguration;
            }
            
            public override void ReloadQueries(bool includeLazyLoadQueries) {
                if ((includeLazyLoadQueries 
                            || (false == NBear.Common.MetaDataManager.IsLazyLoad("Aspxcn.Entities.fav", "Lists")))) {
                    global::Aspxcn.Entities.Lists _obj;
                    _obj = ((global::Aspxcn.Entities.Lists)(this.QueryOne(typeof(global::Aspxcn.Entities.Lists), "Lists", this)));
                    this.OnQueryOnePropertyChanged("Lists", this._Lists, _obj);
                    this._Lists = _obj;
                }
            }
            
            public override object[] GetPropertyValues() {
                return new object[] {
                        this._Listid,
                        this._UserName,
                        this._Add_DateTime,
                        this._favID};
            }
            
            public override void SetPropertyValues(System.Data.IDataReader reader) {
                if ((false == reader.IsDBNull(0))) {
                    this._Listid = reader.GetInt32(0);
                }
                if ((false == reader.IsDBNull(1))) {
                    this._UserName = reader.GetString(1);
                }
                if ((false == reader.IsDBNull(2))) {
                    this._Add_DateTime = this.GetDateTime(reader, 2);
                }
                if ((false == reader.IsDBNull(3))) {
                    this._favID = reader.GetInt32(3);
                }
                this.ReloadQueries(false);
            }
            
            public override void SetPropertyValues(System.Data.DataRow row) {
                if ((false == row.IsNull(0))) {
                    this._Listid = ((int)(row[0]));
                }
                if ((false == row.IsNull(1))) {
                    this._UserName = ((string)(row[1]));
                }
                if ((false == row.IsNull(2))) {
                    this._Add_DateTime = this.GetDateTime(row, 2);
                }
                if ((false == row.IsNull(3))) {
                    this._favID = ((int)(row[3]));
                }
                this.ReloadQueries(false);
            }
            
            public override int GetHashCode() {
                return base.GetHashCode();
            }
            
            public override bool Equals(object obj) {
                if ((obj == null)) {
                    return false;
                }
                if ((false == typeof(global::Aspxcn.Entities.fav).IsAssignableFrom(obj.GetType()))) {
                    return false;
                }
                if ((((object)(this)) == ((object)(obj)))) {
                    return true;
                }
                return ((this.isAttached && ((global::Aspxcn.Entities.fav)(obj)).isAttached) 
                            && (this.Listid == ((global::Aspxcn.Entities.fav)(obj)).Listid));
            }
            
            public static @__Columns @__Alias(string aliasName) {
                return new @__Columns(aliasName);
            }
            
            public class @__Columns {
                
                protected string aliasName;
                
                protected NBear.Common.PropertyItem _Listid = new NBear.Common.PropertyItem("Listid", "Aspxcn.Entities.fav");
                
                protected NBear.Common.PropertyItem _UserName = new NBear.Common.PropertyItem("UserName", "Aspxcn.Entities.fav");
                
                protected NBear.Common.PropertyItem _Add_DateTime = new NBear.Common.PropertyItem("Add_DateTime", "Aspxcn.Entities.fav");
                
                protected NBear.Common.PropertyItem _favID = new NBear.Common.PropertyItem("favID", "Aspxcn.Entities.fav");
                
                public @__Columns() {
                }
                
                public @__Columns(string aliasName) {
                    this.aliasName = aliasName;
                }
                
                public NBear.Common.PropertyItem Listid {
                    get {
                        if ((aliasName == null)) {
                            return _Listid;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Listid", _Listid.EntityConfiguration, _Listid.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem UserName {
                    get {
                        if ((aliasName == null)) {
                            return _UserName;
                        }
                        else {
                            return new NBear.Common.PropertyItem("UserName", _UserName.EntityConfiguration, _UserName.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Add_DateTime {
                    get {
                        if ((aliasName == null)) {
                            return _Add_DateTime;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Add_DateTime", _Add_DateTime.EntityConfiguration, _Add_DateTime.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem favID {
                    get {
                        if ((aliasName == null)) {
                            return _favID;
                        }
                        else {
                            return new NBear.Common.PropertyItem("favID", _favID.EntityConfiguration, _favID.PropertyConfiguration, aliasName);
                        }
                    }
                }
            }
        }
    }
    namespace Aspxcn.Entities {
        using System;
        using System.Xml.Serialization;
        using NBear.Common;
        
        
        [System.SerializableAttribute()]
        public partial class MsgArrayList : NBear.Common.EntityArrayList<Aspxcn.Entities.Msg> {
        }
        
        [System.SerializableAttribute()]
        [NBear.Common.EmbeddedEntityConfigurationAttribute("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<EntityConfiguration xmlns:xsi=\"http://w" +
        "ww.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " +
        "name=\"Aspxcn.Entities.Msg\" isReadOnly=\"false\" isAutoPreLoad=\"false\" isBatchUpdat" +
        "e=\"false\" isRelation=\"false\" mappingName=\"Msg\" batchSize=\"10\">\r\n  <Properties>\r\n" +
        "    <Property name=\"ID\" type=\"System.Int32\" isInherited=\"false\" isReadOnly=\"true" +
        "\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"false\"" +
        " isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isIndexPropert" +
        "yDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"ID\" mappingColumnType=\"" +
        "System.Int32\" sqlType=\"int\" isPrimaryKey=\"true\" isNotNull=\"true\" />\r\n    <Proper" +
        "ty name=\"Msg_Title\" type=\"System.String\" isInherited=\"false\" isReadOnly=\"false\" " +
        "isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"false\" i" +
        "sLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isIndexPropertyD" +
        "esc=\"false\" isSerializationIgnore=\"false\" mappingName=\"Msg_Title\" mappingColumnT" +
        "ype=\"System.String\" sqlType=\"nvarchar(100)\" isPrimaryKey=\"false\" isNotNull=\"fals" +
        "e\" />\r\n    <Property name=\"Msg_Content\" type=\"System.String\" isInherited=\"false\"" +
        " isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" i" +
        "sFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"fal" +
        "se\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"Msg_C" +
        "ontent\" mappingColumnType=\"System.String\" sqlType=\"nvarchar(300)\" isPrimaryKey=\"" +
        "false\" isNotNull=\"false\" />\r\n    <Property name=\"From_userName\" type=\"System.Str" +
        "ing\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"" +
        "false\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"fal" +
        "se\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"f" +
        "alse\" mappingName=\"From_userName\" mappingColumnType=\"System.String\" sqlType=\"nva" +
        "rchar(50)\" isPrimaryKey=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"To_use" +
        "rName\" type=\"System.String\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUni" +
        "t=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"fa" +
        "lse\" isRelationKey=\"false\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" i" +
        "sSerializationIgnore=\"false\" mappingName=\"To_userName\" mappingColumnType=\"System" +
        ".String\" sqlType=\"nvarchar(50)\" isPrimaryKey=\"false\" isNotNull=\"false\" />\r\n    <" +
        "Property name=\"Msg_DateTime\" type=\"System.DateTime\" isInherited=\"false\" isReadOn" +
        "ly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKe" +
        "y=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isInd" +
        "exPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"Msg_DateTime\" " +
        "mappingColumnType=\"System.DateTime\" sqlType=\"datetime\" isPrimaryKey=\"false\" isNo" +
        "tNull=\"false\" />\r\n    <Property name=\"IsRead\" type=\"System.Boolean\" isInherited=" +
        "\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"f" +
        "alse\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProper" +
        "ty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName" +
        "=\"IsRead\" mappingColumnType=\"System.Boolean\" sqlType=\"bit\" isPrimaryKey=\"false\" " +
        "isNotNull=\"false\" />\r\n    <Property name=\"FromIsDel\" type=\"System.Boolean\" isInh" +
        "erited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQ" +
        "uery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isInde" +
        "xProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"false\" mapp" +
        "ingName=\"FromIsDel\" mappingColumnType=\"System.Boolean\" sqlType=\"bit\" isPrimaryKe" +
        "y=\"false\" isNotNull=\"false\" />\r\n    <Property name=\"ToIsDel\" type=\"System.Boolea" +
        "n\" isInherited=\"false\" isReadOnly=\"false\" isCompoundUnit=\"false\" isContained=\"fa" +
        "lse\" isQuery=\"false\" isFriendKey=\"false\" isLazyLoad=\"false\" isRelationKey=\"false" +
        "\" isIndexProperty=\"false\" isIndexPropertyDesc=\"false\" isSerializationIgnore=\"fal" +
        "se\" mappingName=\"ToIsDel\" mappingColumnType=\"System.Boolean\" sqlType=\"bit\" isPri" +
        "maryKey=\"false\" isNotNull=\"false\" />\r\n  </Properties>\r\n</EntityConfiguration>")]
        public partial class Msg : NBear.Common.Entity {
            
            protected static NBear.Common.EntityConfiguration _MsgEntityConfiguration;
            
            protected int _ID;
            
            protected string _Msg_Title;
            
            protected string _Msg_Content;
            
            protected string _From_userName;
            
            protected string _To_userName;
            
            protected global::System.DateTime _Msg_DateTime;
            
            protected bool _IsRead;
            
            protected bool _FromIsDel;
            
            protected bool _ToIsDel;
            
            public static @__Columns _ = new @__Columns();
            
    		public static bool operator ==(global::Aspxcn.Entities.Msg left, global::Aspxcn.Entities.Msg right) { return ((object)left) != null ? left.Equals(right) : ((object)right) == null ? true : false; }


    		public static bool operator !=(global::Aspxcn.Entities.Msg left, global::Aspxcn.Entities.Msg right) { return ((object)left) != null ? !left.Equals(right) : ((object)right) == null ? false : true; }


            
            public int ID {
                get {
                    return this._ID;
                }
                set {
                    this.OnPropertyChanged("ID", this._ID, value);
                    this._ID = value;
                }
            }
            
            public string Msg_Title {
                get {
                    return this._Msg_Title;
                }
                set {
                    this.OnPropertyChanged("Msg_Title", this._Msg_Title, value);
                    this._Msg_Title = value;
                }
            }
            
            public string Msg_Content {
                get {
                    return this._Msg_Content;
                }
                set {
                    this.OnPropertyChanged("Msg_Content", this._Msg_Content, value);
                    this._Msg_Content = value;
                }
            }
            
            public string From_userName {
                get {
                    return this._From_userName;
                }
                set {
                    this.OnPropertyChanged("From_userName", this._From_userName, value);
                    this._From_userName = value;
                }
            }
            
            public string To_userName {
                get {
                    return this._To_userName;
                }
                set {
                    this.OnPropertyChanged("To_userName", this._To_userName, value);
                    this._To_userName = value;
                }
            }
            
            public global::System.DateTime Msg_DateTime {
                get {
                    return this._Msg_DateTime;
                }
                set {
                    this.OnPropertyChanged("Msg_DateTime", this._Msg_DateTime, value);
                    this._Msg_DateTime = value;
                }
            }
            
            public bool IsRead {
                get {
                    return this._IsRead;
                }
                set {
                    this.OnPropertyChanged("IsRead", this._IsRead, value);
                    this._IsRead = value;
                }
            }
            
            public bool FromIsDel {
                get {
                    return this._FromIsDel;
                }
                set {
                    this.OnPropertyChanged("FromIsDel", this._FromIsDel, value);
                    this._FromIsDel = value;
                }
            }
            
            public bool ToIsDel {
                get {
                    return this._ToIsDel;
                }
                set {
                    this.OnPropertyChanged("ToIsDel", this._ToIsDel, value);
                    this._ToIsDel = value;
                }
            }
            
            public override NBear.Common.EntityConfiguration GetEntityConfiguration() {
                if ((Msg._MsgEntityConfiguration == null)) {
                    Msg._MsgEntityConfiguration = NBear.Common.MetaDataManager.GetEntityConfiguration("Aspxcn.Entities.Msg");
                }
                return Msg._MsgEntityConfiguration;
            }
            
            public override void ReloadQueries(bool includeLazyLoadQueries) {
            }
            
            public override object[] GetPropertyValues() {
                return new object[] {
                        this._ID,
                        this._Msg_Title,
                        this._Msg_Content,
                        this._From_userName,
                        this._To_userName,
                        this._Msg_DateTime,
                        this._IsRead,
                        this._FromIsDel,
                        this._ToIsDel};
            }
            
            public override void SetPropertyValues(System.Data.IDataReader reader) {
                if ((false == reader.IsDBNull(0))) {
                    this._ID = reader.GetInt32(0);
                }
                if ((false == reader.IsDBNull(1))) {
                    this._Msg_Title = reader.GetString(1);
                }
                if ((false == reader.IsDBNull(2))) {
                    this._Msg_Content = reader.GetString(2);
                }
                if ((false == reader.IsDBNull(3))) {
                    this._From_userName = reader.GetString(3);
                }
                if ((false == reader.IsDBNull(4))) {
                    this._To_userName = reader.GetString(4);
                }
                if ((false == reader.IsDBNull(5))) {
                    this._Msg_DateTime = this.GetDateTime(reader, 5);
                }
                if ((false == reader.IsDBNull(6))) {
                    this._IsRead = reader.GetBoolean(6);
                }
                if ((false == reader.IsDBNull(7))) {
                    this._FromIsDel = reader.GetBoolean(7);
                }
                if ((false == reader.IsDBNull(8))) {
                    this._ToIsDel = reader.GetBoolean(8);
                }
                this.ReloadQueries(false);
            }
            
            public override void SetPropertyValues(System.Data.DataRow row) {
                if ((false == row.IsNull(0))) {
                    this._ID = ((int)(row[0]));
                }
                if ((false == row.IsNull(1))) {
                    this._Msg_Title = ((string)(row[1]));
                }
                if ((false == row.IsNull(2))) {
                    this._Msg_Content = ((string)(row[2]));
                }
                if ((false == row.IsNull(3))) {
                    this._From_userName = ((string)(row[3]));
                }
                if ((false == row.IsNull(4))) {
                    this._To_userName = ((string)(row[4]));
                }
                if ((false == row.IsNull(5))) {
                    this._Msg_DateTime = this.GetDateTime(row, 5);
                }
                if ((false == row.IsNull(6))) {
                    this._IsRead = ((bool)(row[6]));
                }
                if ((false == row.IsNull(7))) {
                    this._FromIsDel = ((bool)(row[7]));
                }
                if ((false == row.IsNull(8))) {
                    this._ToIsDel = ((bool)(row[8]));
                }
                this.ReloadQueries(false);
            }
            
            public override int GetHashCode() {
                return base.GetHashCode();
            }
            
            public override bool Equals(object obj) {
                if ((obj == null)) {
                    return false;
                }
                if ((false == typeof(global::Aspxcn.Entities.Msg).IsAssignableFrom(obj.GetType()))) {
                    return false;
                }
                if ((((object)(this)) == ((object)(obj)))) {
                    return true;
                }
                return ((this.isAttached && ((global::Aspxcn.Entities.Msg)(obj)).isAttached) 
                            && (this.ID == ((global::Aspxcn.Entities.Msg)(obj)).ID));
            }
            
            public static @__Columns @__Alias(string aliasName) {
                return new @__Columns(aliasName);
            }
            
            public class @__Columns {
                
                protected string aliasName;
                
                protected NBear.Common.PropertyItem _ID = new NBear.Common.PropertyItem("ID", "Aspxcn.Entities.Msg");
                
                protected NBear.Common.PropertyItem _Msg_Title = new NBear.Common.PropertyItem("Msg_Title", "Aspxcn.Entities.Msg");
                
                protected NBear.Common.PropertyItem _Msg_Content = new NBear.Common.PropertyItem("Msg_Content", "Aspxcn.Entities.Msg");
                
                protected NBear.Common.PropertyItem _From_userName = new NBear.Common.PropertyItem("From_userName", "Aspxcn.Entities.Msg");
                
                protected NBear.Common.PropertyItem _To_userName = new NBear.Common.PropertyItem("To_userName", "Aspxcn.Entities.Msg");
                
                protected NBear.Common.PropertyItem _Msg_DateTime = new NBear.Common.PropertyItem("Msg_DateTime", "Aspxcn.Entities.Msg");
                
                protected NBear.Common.PropertyItem _IsRead = new NBear.Common.PropertyItem("IsRead", "Aspxcn.Entities.Msg");
                
                protected NBear.Common.PropertyItem _FromIsDel = new NBear.Common.PropertyItem("FromIsDel", "Aspxcn.Entities.Msg");
                
                protected NBear.Common.PropertyItem _ToIsDel = new NBear.Common.PropertyItem("ToIsDel", "Aspxcn.Entities.Msg");
                
                public @__Columns() {
                }
                
                public @__Columns(string aliasName) {
                    this.aliasName = aliasName;
                }
                
                public NBear.Common.PropertyItem ID {
                    get {
                        if ((aliasName == null)) {
                            return _ID;
                        }
                        else {
                            return new NBear.Common.PropertyItem("ID", _ID.EntityConfiguration, _ID.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Msg_Title {
                    get {
                        if ((aliasName == null)) {
                            return _Msg_Title;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Msg_Title", _Msg_Title.EntityConfiguration, _Msg_Title.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Msg_Content {
                    get {
                        if ((aliasName == null)) {
                            return _Msg_Content;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Msg_Content", _Msg_Content.EntityConfiguration, _Msg_Content.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem From_userName {
                    get {
                        if ((aliasName == null)) {
                            return _From_userName;
                        }
                        else {
                            return new NBear.Common.PropertyItem("From_userName", _From_userName.EntityConfiguration, _From_userName.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem To_userName {
                    get {
                        if ((aliasName == null)) {
                            return _To_userName;
                        }
                        else {
                            return new NBear.Common.PropertyItem("To_userName", _To_userName.EntityConfiguration, _To_userName.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Msg_DateTime {
                    get {
                        if ((aliasName == null)) {
                            return _Msg_DateTime;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Msg_DateTime", _Msg_DateTime.EntityConfiguration, _Msg_DateTime.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem IsRead {
                    get {
                        if ((aliasName == null)) {
                            return _IsRead;
                        }
                        else {
                            return new NBear.Common.PropertyItem("IsRead", _IsRead.EntityConfiguration, _IsRead.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem FromIsDel {
                    get {
                        if ((aliasName == null)) {
                            return _FromIsDel;
                        }
                        else {
                            return new NBear.Common.PropertyItem("FromIsDel", _FromIsDel.EntityConfiguration, _FromIsDel.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem ToIsDel {
                    get {
                        if ((aliasName == null)) {
                            return _ToIsDel;
                        }
                        else {
                            return new NBear.Common.PropertyItem("ToIsDel", _ToIsDel.EntityConfiguration, _ToIsDel.PropertyConfiguration, aliasName);
                        }
                    }
                }
            }
        }
    }
    namespace Aspxcn.Entities {
        using System;
        using System.Xml.Serialization;
        using NBear.Common;
        
        
        [System.SerializableAttribute()]
        public partial class CatalogArrayList : NBear.Common.EntityArrayList<Aspxcn.Entities.Catalog> {
        }
        
        [System.SerializableAttribute()]
        [NBear.Common.EmbeddedEntityConfigurationAttribute("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<EntityConfiguration xmlns:xsi=\"http://w" +
        "ww.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " +
        "name=\"Aspxcn.Entities.Catalog\" isReadOnly=\"false\" isAutoPreLoad=\"false\" isBatchU" +
        "pdate=\"false\" isRelation=\"false\" mappingName=\"Catalog\" batchSize=\"10\">\r\n  <Prope" +
        "rties>\r\n    <Property name=\"id\" type=\"System.Int32\" isInherited=\"false\" isReadOn" +
        "ly=\"true\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey" +
        "=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isInde" +
        "xPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"id\" mappingColu" +
        "mnType=\"System.Int32\" sqlType=\"int\" isPrimaryKey=\"true\" isNotNull=\"true\" />\r\n   " +
        " <Property name=\"Name\" type=\"System.String\" isInherited=\"false\" isReadOnly=\"fals" +
        "e\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"false" +
        "\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isIndexProper" +
        "tyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"Name\" mappingColumnTyp" +
        "e=\"System.String\" sqlType=\"nvarchar(20)\" isPrimaryKey=\"false\" isNotNull=\"false\" " +
        "/>\r\n    <Property name=\"Show\" type=\"System.Boolean\" isInherited=\"false\" isReadOn" +
        "ly=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKe" +
        "y=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isInd" +
        "exPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"Show\" mappingC" +
        "olumnType=\"System.Boolean\" sqlType=\"bit\" isPrimaryKey=\"false\" isNotNull=\"false\" " +
        "/>\r\n  </Properties>\r\n</EntityConfiguration>")]
        public partial class Catalog : NBear.Common.Entity {
            
            protected static NBear.Common.EntityConfiguration _CatalogEntityConfiguration;
            
            protected int _id;
            
            protected string _Name;
            
            protected bool _Show;
            
            public static @__Columns _ = new @__Columns();
            
    		public static bool operator ==(global::Aspxcn.Entities.Catalog left, global::Aspxcn.Entities.Catalog right) { return ((object)left) != null ? left.Equals(right) : ((object)right) == null ? true : false; }


    		public static bool operator !=(global::Aspxcn.Entities.Catalog left, global::Aspxcn.Entities.Catalog right) { return ((object)left) != null ? !left.Equals(right) : ((object)right) == null ? false : true; }


            
            public int id {
                get {
                    return this._id;
                }
                set {
                    this.OnPropertyChanged("id", this._id, value);
                    this._id = value;
                }
            }
            
            public string Name {
                get {
                    return this._Name;
                }
                set {
                    this.OnPropertyChanged("Name", this._Name, value);
                    this._Name = value;
                }
            }
            
            public bool Show {
                get {
                    return this._Show;
                }
                set {
                    this.OnPropertyChanged("Show", this._Show, value);
                    this._Show = value;
                }
            }
            
            public override NBear.Common.EntityConfiguration GetEntityConfiguration() {
                if ((Catalog._CatalogEntityConfiguration == null)) {
                    Catalog._CatalogEntityConfiguration = NBear.Common.MetaDataManager.GetEntityConfiguration("Aspxcn.Entities.Catalog");
                }
                return Catalog._CatalogEntityConfiguration;
            }
            
            public override void ReloadQueries(bool includeLazyLoadQueries) {
            }
            
            public override object[] GetPropertyValues() {
                return new object[] {
                        this._id,
                        this._Name,
                        this._Show};
            }
            
            public override void SetPropertyValues(System.Data.IDataReader reader) {
                if ((false == reader.IsDBNull(0))) {
                    this._id = reader.GetInt32(0);
                }
                if ((false == reader.IsDBNull(1))) {
                    this._Name = reader.GetString(1);
                }
                if ((false == reader.IsDBNull(2))) {
                    this._Show = reader.GetBoolean(2);
                }
                this.ReloadQueries(false);
            }
            
            public override void SetPropertyValues(System.Data.DataRow row) {
                if ((false == row.IsNull(0))) {
                    this._id = ((int)(row[0]));
                }
                if ((false == row.IsNull(1))) {
                    this._Name = ((string)(row[1]));
                }
                if ((false == row.IsNull(2))) {
                    this._Show = ((bool)(row[2]));
                }
                this.ReloadQueries(false);
            }
            
            public override int GetHashCode() {
                return base.GetHashCode();
            }
            
            public override bool Equals(object obj) {
                if ((obj == null)) {
                    return false;
                }
                if ((false == typeof(global::Aspxcn.Entities.Catalog).IsAssignableFrom(obj.GetType()))) {
                    return false;
                }
                if ((((object)(this)) == ((object)(obj)))) {
                    return true;
                }
                return ((this.isAttached && ((global::Aspxcn.Entities.Catalog)(obj)).isAttached) 
                            && (this.id == ((global::Aspxcn.Entities.Catalog)(obj)).id));
            }
            
            public static @__Columns @__Alias(string aliasName) {
                return new @__Columns(aliasName);
            }
            
            public class @__Columns {
                
                protected string aliasName;
                
                protected NBear.Common.PropertyItem _id = new NBear.Common.PropertyItem("id", "Aspxcn.Entities.Catalog");
                
                protected NBear.Common.PropertyItem _Name = new NBear.Common.PropertyItem("Name", "Aspxcn.Entities.Catalog");
                
                protected NBear.Common.PropertyItem _Show = new NBear.Common.PropertyItem("Show", "Aspxcn.Entities.Catalog");
                
                public @__Columns() {
                }
                
                public @__Columns(string aliasName) {
                    this.aliasName = aliasName;
                }
                
                public NBear.Common.PropertyItem id {
                    get {
                        if ((aliasName == null)) {
                            return _id;
                        }
                        else {
                            return new NBear.Common.PropertyItem("id", _id.EntityConfiguration, _id.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Name {
                    get {
                        if ((aliasName == null)) {
                            return _Name;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Name", _Name.EntityConfiguration, _Name.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Show {
                    get {
                        if ((aliasName == null)) {
                            return _Show;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Show", _Show.EntityConfiguration, _Show.PropertyConfiguration, aliasName);
                        }
                    }
                }
            }
        }
    }
    namespace Aspxcn.Entities {
        using System;
        using System.Xml.Serialization;
        using NBear.Common;
        
        
        [System.SerializableAttribute()]
        public partial class ClassArrayList : NBear.Common.EntityArrayList<Aspxcn.Entities.Class> {
        }
        
        [System.SerializableAttribute()]
        [NBear.Common.EmbeddedEntityConfigurationAttribute("<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<EntityConfiguration xmlns:xsi=\"http://w" +
        "ww.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " +
        "name=\"Aspxcn.Entities.Class\" isReadOnly=\"false\" isAutoPreLoad=\"false\" isBatchUpd" +
        "ate=\"false\" isRelation=\"false\" mappingName=\"Class\" batchSize=\"10\">\r\n  <Propertie" +
        "s>\r\n    <Property name=\"id\" type=\"System.Int32\" isInherited=\"false\" isReadOnly=\"" +
        "true\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"fa" +
        "lse\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isIndexPro" +
        "pertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"id\" mappingColumnTy" +
        "pe=\"System.Int32\" sqlType=\"int\" isPrimaryKey=\"true\" isNotNull=\"true\" />\r\n    <Pr" +
        "operty name=\"Name\" type=\"System.String\" isInherited=\"false\" isReadOnly=\"false\" i" +
        "sCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey=\"false\" is" +
        "LazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isIndexPropertyDe" +
        "sc=\"false\" isSerializationIgnore=\"false\" mappingName=\"Name\" mappingColumnType=\"S" +
        "ystem.String\" sqlType=\"nvarchar(20)\" isPrimaryKey=\"false\" isNotNull=\"false\" />\r\n" +
        "    <Property name=\"Catalogid\" type=\"System.Int32\" isInherited=\"false\" isReadOnl" +
        "y=\"false\" isCompoundUnit=\"false\" isContained=\"false\" isQuery=\"false\" isFriendKey" +
        "=\"false\" isLazyLoad=\"false\" isRelationKey=\"false\" isIndexProperty=\"false\" isInde" +
        "xPropertyDesc=\"false\" isSerializationIgnore=\"false\" mappingName=\"Catalogid\" mapp" +
        "ingColumnType=\"System.Int32\" sqlType=\"int\" isPrimaryKey=\"false\" isNotNull=\"false" +
        "\" />\r\n  </Properties>\r\n</EntityConfiguration>")]
        public partial class Class : NBear.Common.Entity {
            
            protected static NBear.Common.EntityConfiguration _ClassEntityConfiguration;
            
            protected int _id;
            
            protected string _Name;
            
            protected int _Catalogid;
            
            public static @__Columns _ = new @__Columns();
            
    		public static bool operator ==(global::Aspxcn.Entities.Class left, global::Aspxcn.Entities.Class right) { return ((object)left) != null ? left.Equals(right) : ((object)right) == null ? true : false; }


    		public static bool operator !=(global::Aspxcn.Entities.Class left, global::Aspxcn.Entities.Class right) { return ((object)left) != null ? !left.Equals(right) : ((object)right) == null ? false : true; }


            
            public int id {
                get {
                    return this._id;
                }
                set {
                    this.OnPropertyChanged("id", this._id, value);
                    this._id = value;
                }
            }
            
            public string Name {
                get {
                    return this._Name;
                }
                set {
                    this.OnPropertyChanged("Name", this._Name, value);
                    this._Name = value;
                }
            }
            
            public int Catalogid {
                get {
                    return this._Catalogid;
                }
                set {
                    this.OnPropertyChanged("Catalogid", this._Catalogid, value);
                    this._Catalogid = value;
                }
            }
            
            public override NBear.Common.EntityConfiguration GetEntityConfiguration() {
                if ((Class._ClassEntityConfiguration == null)) {
                    Class._ClassEntityConfiguration = NBear.Common.MetaDataManager.GetEntityConfiguration("Aspxcn.Entities.Class");
                }
                return Class._ClassEntityConfiguration;
            }
            
            public override void ReloadQueries(bool includeLazyLoadQueries) {
            }
            
            public override object[] GetPropertyValues() {
                return new object[] {
                        this._id,
                        this._Name,
                        this._Catalogid};
            }
            
            public override void SetPropertyValues(System.Data.IDataReader reader) {
                if ((false == reader.IsDBNull(0))) {
                    this._id = reader.GetInt32(0);
                }
                if ((false == reader.IsDBNull(1))) {
                    this._Name = reader.GetString(1);
                }
                if ((false == reader.IsDBNull(2))) {
                    this._Catalogid = reader.GetInt32(2);
                }
                this.ReloadQueries(false);
            }
            
            public override void SetPropertyValues(System.Data.DataRow row) {
                if ((false == row.IsNull(0))) {
                    this._id = ((int)(row[0]));
                }
                if ((false == row.IsNull(1))) {
                    this._Name = ((string)(row[1]));
                }
                if ((false == row.IsNull(2))) {
                    this._Catalogid = ((int)(row[2]));
                }
                this.ReloadQueries(false);
            }
            
            public override int GetHashCode() {
                return base.GetHashCode();
            }
            
            public override bool Equals(object obj) {
                if ((obj == null)) {
                    return false;
                }
                if ((false == typeof(global::Aspxcn.Entities.Class).IsAssignableFrom(obj.GetType()))) {
                    return false;
                }
                if ((((object)(this)) == ((object)(obj)))) {
                    return true;
                }
                return ((this.isAttached && ((global::Aspxcn.Entities.Class)(obj)).isAttached) 
                            && (this.id == ((global::Aspxcn.Entities.Class)(obj)).id));
            }
            
            public static @__Columns @__Alias(string aliasName) {
                return new @__Columns(aliasName);
            }
            
            public class @__Columns {
                
                protected string aliasName;
                
                protected NBear.Common.PropertyItem _id = new NBear.Common.PropertyItem("id", "Aspxcn.Entities.Class");
                
                protected NBear.Common.PropertyItem _Name = new NBear.Common.PropertyItem("Name", "Aspxcn.Entities.Class");
                
                protected NBear.Common.PropertyItem _Catalogid = new NBear.Common.PropertyItem("Catalogid", "Aspxcn.Entities.Class");
                
                public @__Columns() {
                }
                
                public @__Columns(string aliasName) {
                    this.aliasName = aliasName;
                }
                
                public NBear.Common.PropertyItem id {
                    get {
                        if ((aliasName == null)) {
                            return _id;
                        }
                        else {
                            return new NBear.Common.PropertyItem("id", _id.EntityConfiguration, _id.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Name {
                    get {
                        if ((aliasName == null)) {
                            return _Name;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Name", _Name.EntityConfiguration, _Name.PropertyConfiguration, aliasName);
                        }
                    }
                }
                
                public NBear.Common.PropertyItem Catalogid {
                    get {
                        if ((aliasName == null)) {
                            return _Catalogid;
                        }
                        else {
                            return new NBear.Common.PropertyItem("Catalogid", _Catalogid.EntityConfiguration, _Catalogid.PropertyConfiguration, aliasName);
                        }
                    }
                }
            }
        }
    }
