//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.2032
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

namespace BookCommunityClient {
    using System;
    using System.Data;
    using System.Xml;
    using System.Runtime.Serialization;
    
    
    [Serializable()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Diagnostics.DebuggerStepThrough()]
    [System.ComponentModel.ToolboxItem(true)]
    public class DataSet1 : DataSet {
        
        private BOOK_INFODataTable tableBOOK_INFO;
        
        private USER_INFODataTable tableUSER_INFO;
        
        private MESSAGE_INFODataTable tableMESSAGE_INFO;
        
        public DataSet1() {
            this.InitClass();
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        protected DataSet1(SerializationInfo info, StreamingContext context) {
            string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
            if ((strSchema != null)) {
                DataSet ds = new DataSet();
                ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
                if ((ds.Tables["BOOK_INFO"] != null)) {
                    this.Tables.Add(new BOOK_INFODataTable(ds.Tables["BOOK_INFO"]));
                }
                if ((ds.Tables["USER_INFO"] != null)) {
                    this.Tables.Add(new USER_INFODataTable(ds.Tables["USER_INFO"]));
                }
                if ((ds.Tables["MESSAGE_INFO"] != null)) {
                    this.Tables.Add(new MESSAGE_INFODataTable(ds.Tables["MESSAGE_INFO"]));
                }
                this.DataSetName = ds.DataSetName;
                this.Prefix = ds.Prefix;
                this.Namespace = ds.Namespace;
                this.Locale = ds.Locale;
                this.CaseSensitive = ds.CaseSensitive;
                this.EnforceConstraints = ds.EnforceConstraints;
                this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
                this.InitVars();
            }
            else {
                this.InitClass();
            }
            this.GetSerializationData(info, context);
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public BOOK_INFODataTable BOOK_INFO {
            get {
                return this.tableBOOK_INFO;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public USER_INFODataTable USER_INFO {
            get {
                return this.tableUSER_INFO;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public MESSAGE_INFODataTable MESSAGE_INFO {
            get {
                return this.tableMESSAGE_INFO;
            }
        }
        
        public override DataSet Clone() {
            DataSet1 cln = ((DataSet1)(base.Clone()));
            cln.InitVars();
            return cln;
        }
        
        protected override bool ShouldSerializeTables() {
            return false;
        }
        
        protected override bool ShouldSerializeRelations() {
            return false;
        }
        
        protected override void ReadXmlSerializable(XmlReader reader) {
            this.Reset();
            DataSet ds = new DataSet();
            ds.ReadXml(reader);
            if ((ds.Tables["BOOK_INFO"] != null)) {
                this.Tables.Add(new BOOK_INFODataTable(ds.Tables["BOOK_INFO"]));
            }
            if ((ds.Tables["USER_INFO"] != null)) {
                this.Tables.Add(new USER_INFODataTable(ds.Tables["USER_INFO"]));
            }
            if ((ds.Tables["MESSAGE_INFO"] != null)) {
                this.Tables.Add(new MESSAGE_INFODataTable(ds.Tables["MESSAGE_INFO"]));
            }
            this.DataSetName = ds.DataSetName;
            this.Prefix = ds.Prefix;
            this.Namespace = ds.Namespace;
            this.Locale = ds.Locale;
            this.CaseSensitive = ds.CaseSensitive;
            this.EnforceConstraints = ds.EnforceConstraints;
            this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
            this.InitVars();
        }
        
        protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
            System.IO.MemoryStream stream = new System.IO.MemoryStream();
            this.WriteXmlSchema(new XmlTextWriter(stream, null));
            stream.Position = 0;
            return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
        }
        
        internal void InitVars() {
            this.tableBOOK_INFO = ((BOOK_INFODataTable)(this.Tables["BOOK_INFO"]));
            if ((this.tableBOOK_INFO != null)) {
                this.tableBOOK_INFO.InitVars();
            }
            this.tableUSER_INFO = ((USER_INFODataTable)(this.Tables["USER_INFO"]));
            if ((this.tableUSER_INFO != null)) {
                this.tableUSER_INFO.InitVars();
            }
            this.tableMESSAGE_INFO = ((MESSAGE_INFODataTable)(this.Tables["MESSAGE_INFO"]));
            if ((this.tableMESSAGE_INFO != null)) {
                this.tableMESSAGE_INFO.InitVars();
            }
        }
        
        private void InitClass() {
            this.DataSetName = "DataSet1";
            this.Prefix = "";
            this.Namespace = "http://www.tempuri.org/DataSet1.xsd";
            this.Locale = new System.Globalization.CultureInfo("zh-CN");
            this.CaseSensitive = false;
            this.EnforceConstraints = true;
            this.tableBOOK_INFO = new BOOK_INFODataTable();
            this.Tables.Add(this.tableBOOK_INFO);
            this.tableUSER_INFO = new USER_INFODataTable();
            this.Tables.Add(this.tableUSER_INFO);
            this.tableMESSAGE_INFO = new MESSAGE_INFODataTable();
            this.Tables.Add(this.tableMESSAGE_INFO);
        }
        
        private bool ShouldSerializeBOOK_INFO() {
            return false;
        }
        
        private bool ShouldSerializeUSER_INFO() {
            return false;
        }
        
        private bool ShouldSerializeMESSAGE_INFO() {
            return false;
        }
        
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        public delegate void BOOK_INFORowChangeEventHandler(object sender, BOOK_INFORowChangeEvent e);
        
        public delegate void USER_INFORowChangeEventHandler(object sender, USER_INFORowChangeEvent e);
        
        public delegate void MESSAGE_INFORowChangeEventHandler(object sender, MESSAGE_INFORowChangeEvent e);
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class BOOK_INFODataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnID;
            
            private DataColumn columnBookNameEng;
            
            private DataColumn columnBookNameChn;
            
            private DataColumn columnAuthor;
            
            private DataColumn columnTranslator;
            
            private DataColumn columnPress;
            
            private DataColumn columnISBN;
            
            private DataColumn columnSummary;
            
            private DataColumn columnCoverPage;
            
            private DataColumn columnContents;
            
            private DataColumn columnStatus;
            
            private DataColumn columnOwner;
            
            private DataColumn columnCurrentShareInfo;
            
            internal BOOK_INFODataTable() : 
                    base("BOOK_INFO") {
                this.InitClass();
            }
            
            internal BOOK_INFODataTable(DataTable table) : 
                    base(table.TableName) {
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn IDColumn {
                get {
                    return this.columnID;
                }
            }
            
            internal DataColumn BookNameEngColumn {
                get {
                    return this.columnBookNameEng;
                }
            }
            
            internal DataColumn BookNameChnColumn {
                get {
                    return this.columnBookNameChn;
                }
            }
            
            internal DataColumn AuthorColumn {
                get {
                    return this.columnAuthor;
                }
            }
            
            internal DataColumn TranslatorColumn {
                get {
                    return this.columnTranslator;
                }
            }
            
            internal DataColumn PressColumn {
                get {
                    return this.columnPress;
                }
            }
            
            internal DataColumn ISBNColumn {
                get {
                    return this.columnISBN;
                }
            }
            
            internal DataColumn SummaryColumn {
                get {
                    return this.columnSummary;
                }
            }
            
            internal DataColumn CoverPageColumn {
                get {
                    return this.columnCoverPage;
                }
            }
            
            internal DataColumn ContentsColumn {
                get {
                    return this.columnContents;
                }
            }
            
            internal DataColumn StatusColumn {
                get {
                    return this.columnStatus;
                }
            }
            
            internal DataColumn OwnerColumn {
                get {
                    return this.columnOwner;
                }
            }
            
            internal DataColumn CurrentShareInfoColumn {
                get {
                    return this.columnCurrentShareInfo;
                }
            }
            
            public BOOK_INFORow this[int index] {
                get {
                    return ((BOOK_INFORow)(this.Rows[index]));
                }
            }
            
            public event BOOK_INFORowChangeEventHandler BOOK_INFORowChanged;
            
            public event BOOK_INFORowChangeEventHandler BOOK_INFORowChanging;
            
            public event BOOK_INFORowChangeEventHandler BOOK_INFORowDeleted;
            
            public event BOOK_INFORowChangeEventHandler BOOK_INFORowDeleting;
            
            public void AddBOOK_INFORow(BOOK_INFORow row) {
                this.Rows.Add(row);
            }
            
            public BOOK_INFORow AddBOOK_INFORow(string BookNameEng, string BookNameChn, string Author, string Translator, string Press, string ISBN, string Summary, string CoverPage, string Contents, string Status, int Owner, int CurrentShareInfo) {
                BOOK_INFORow rowBOOK_INFORow = ((BOOK_INFORow)(this.NewRow()));
                rowBOOK_INFORow.ItemArray = new object[] {
                        null,
                        BookNameEng,
                        BookNameChn,
                        Author,
                        Translator,
                        Press,
                        ISBN,
                        Summary,
                        CoverPage,
                        Contents,
                        Status,
                        Owner,
                        CurrentShareInfo};
                this.Rows.Add(rowBOOK_INFORow);
                return rowBOOK_INFORow;
            }
            
            public BOOK_INFORow FindByID(int ID) {
                return ((BOOK_INFORow)(this.Rows.Find(new object[] {
                            ID})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                BOOK_INFODataTable cln = ((BOOK_INFODataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new BOOK_INFODataTable();
            }
            
            internal void InitVars() {
                this.columnID = this.Columns["ID"];
                this.columnBookNameEng = this.Columns["BookNameEng"];
                this.columnBookNameChn = this.Columns["BookNameChn"];
                this.columnAuthor = this.Columns["Author"];
                this.columnTranslator = this.Columns["Translator"];
                this.columnPress = this.Columns["Press"];
                this.columnISBN = this.Columns["ISBN"];
                this.columnSummary = this.Columns["Summary"];
                this.columnCoverPage = this.Columns["CoverPage"];
                this.columnContents = this.Columns["Contents"];
                this.columnStatus = this.Columns["Status"];
                this.columnOwner = this.Columns["Owner"];
                this.columnCurrentShareInfo = this.Columns["CurrentShareInfo"];
            }
            
            private void InitClass() {
                this.columnID = new DataColumn("ID", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnID);
                this.columnBookNameEng = new DataColumn("BookNameEng", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnBookNameEng);
                this.columnBookNameChn = new DataColumn("BookNameChn", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnBookNameChn);
                this.columnAuthor = new DataColumn("Author", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnAuthor);
                this.columnTranslator = new DataColumn("Translator", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnTranslator);
                this.columnPress = new DataColumn("Press", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPress);
                this.columnISBN = new DataColumn("ISBN", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnISBN);
                this.columnSummary = new DataColumn("Summary", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSummary);
                this.columnCoverPage = new DataColumn("CoverPage", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnCoverPage);
                this.columnContents = new DataColumn("Contents", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnContents);
                this.columnStatus = new DataColumn("Status", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnStatus);
                this.columnOwner = new DataColumn("Owner", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnOwner);
                this.columnCurrentShareInfo = new DataColumn("CurrentShareInfo", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnCurrentShareInfo);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.columnID}, true));
                this.columnID.AutoIncrement = true;
                this.columnID.AllowDBNull = false;
                this.columnID.ReadOnly = true;
                this.columnID.Unique = true;
                this.columnOwner.AllowDBNull = false;
            }
            
            public BOOK_INFORow NewBOOK_INFORow() {
                return ((BOOK_INFORow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new BOOK_INFORow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(BOOK_INFORow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.BOOK_INFORowChanged != null)) {
                    this.BOOK_INFORowChanged(this, new BOOK_INFORowChangeEvent(((BOOK_INFORow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.BOOK_INFORowChanging != null)) {
                    this.BOOK_INFORowChanging(this, new BOOK_INFORowChangeEvent(((BOOK_INFORow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.BOOK_INFORowDeleted != null)) {
                    this.BOOK_INFORowDeleted(this, new BOOK_INFORowChangeEvent(((BOOK_INFORow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.BOOK_INFORowDeleting != null)) {
                    this.BOOK_INFORowDeleting(this, new BOOK_INFORowChangeEvent(((BOOK_INFORow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveBOOK_INFORow(BOOK_INFORow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class BOOK_INFORow : DataRow {
            
            private BOOK_INFODataTable tableBOOK_INFO;
            
            internal BOOK_INFORow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableBOOK_INFO = ((BOOK_INFODataTable)(this.Table));
            }
            
            public int ID {
                get {
                    return ((int)(this[this.tableBOOK_INFO.IDColumn]));
                }
                set {
                    this[this.tableBOOK_INFO.IDColumn] = value;
                }
            }
            
            public string BookNameEng {
                get {
                    try {
                        return ((string)(this[this.tableBOOK_INFO.BookNameEngColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBOOK_INFO.BookNameEngColumn] = value;
                }
            }
            
            public string BookNameChn {
                get {
                    try {
                        return ((string)(this[this.tableBOOK_INFO.BookNameChnColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBOOK_INFO.BookNameChnColumn] = value;
                }
            }
            
            public string Author {
                get {
                    try {
                        return ((string)(this[this.tableBOOK_INFO.AuthorColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBOOK_INFO.AuthorColumn] = value;
                }
            }
            
            public string Translator {
                get {
                    try {
                        return ((string)(this[this.tableBOOK_INFO.TranslatorColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBOOK_INFO.TranslatorColumn] = value;
                }
            }
            
            public string Press {
                get {
                    try {
                        return ((string)(this[this.tableBOOK_INFO.PressColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBOOK_INFO.PressColumn] = value;
                }
            }
            
            public string ISBN {
                get {
                    try {
                        return ((string)(this[this.tableBOOK_INFO.ISBNColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBOOK_INFO.ISBNColumn] = value;
                }
            }
            
            public string Summary {
                get {
                    try {
                        return ((string)(this[this.tableBOOK_INFO.SummaryColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBOOK_INFO.SummaryColumn] = value;
                }
            }
            
            public string CoverPage {
                get {
                    try {
                        return ((string)(this[this.tableBOOK_INFO.CoverPageColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBOOK_INFO.CoverPageColumn] = value;
                }
            }
            
            public string Contents {
                get {
                    try {
                        return ((string)(this[this.tableBOOK_INFO.ContentsColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBOOK_INFO.ContentsColumn] = value;
                }
            }
            
            public string Status {
                get {
                    try {
                        return ((string)(this[this.tableBOOK_INFO.StatusColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBOOK_INFO.StatusColumn] = value;
                }
            }
            
            public int Owner {
                get {
                    return ((int)(this[this.tableBOOK_INFO.OwnerColumn]));
                }
                set {
                    this[this.tableBOOK_INFO.OwnerColumn] = value;
                }
            }
            
            public int CurrentShareInfo {
                get {
                    try {
                        return ((int)(this[this.tableBOOK_INFO.CurrentShareInfoColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableBOOK_INFO.CurrentShareInfoColumn] = value;
                }
            }
            
            public bool IsBookNameEngNull() {
                return this.IsNull(this.tableBOOK_INFO.BookNameEngColumn);
            }
            
            public void SetBookNameEngNull() {
                this[this.tableBOOK_INFO.BookNameEngColumn] = System.Convert.DBNull;
            }
            
            public bool IsBookNameChnNull() {
                return this.IsNull(this.tableBOOK_INFO.BookNameChnColumn);
            }
            
            public void SetBookNameChnNull() {
                this[this.tableBOOK_INFO.BookNameChnColumn] = System.Convert.DBNull;
            }
            
            public bool IsAuthorNull() {
                return this.IsNull(this.tableBOOK_INFO.AuthorColumn);
            }
            
            public void SetAuthorNull() {
                this[this.tableBOOK_INFO.AuthorColumn] = System.Convert.DBNull;
            }
            
            public bool IsTranslatorNull() {
                return this.IsNull(this.tableBOOK_INFO.TranslatorColumn);
            }
            
            public void SetTranslatorNull() {
                this[this.tableBOOK_INFO.TranslatorColumn] = System.Convert.DBNull;
            }
            
            public bool IsPressNull() {
                return this.IsNull(this.tableBOOK_INFO.PressColumn);
            }
            
            public void SetPressNull() {
                this[this.tableBOOK_INFO.PressColumn] = System.Convert.DBNull;
            }
            
            public bool IsISBNNull() {
                return this.IsNull(this.tableBOOK_INFO.ISBNColumn);
            }
            
            public void SetISBNNull() {
                this[this.tableBOOK_INFO.ISBNColumn] = System.Convert.DBNull;
            }
            
            public bool IsSummaryNull() {
                return this.IsNull(this.tableBOOK_INFO.SummaryColumn);
            }
            
            public void SetSummaryNull() {
                this[this.tableBOOK_INFO.SummaryColumn] = System.Convert.DBNull;
            }
            
            public bool IsCoverPageNull() {
                return this.IsNull(this.tableBOOK_INFO.CoverPageColumn);
            }
            
            public void SetCoverPageNull() {
                this[this.tableBOOK_INFO.CoverPageColumn] = System.Convert.DBNull;
            }
            
            public bool IsContentsNull() {
                return this.IsNull(this.tableBOOK_INFO.ContentsColumn);
            }
            
            public void SetContentsNull() {
                this[this.tableBOOK_INFO.ContentsColumn] = System.Convert.DBNull;
            }
            
            public bool IsStatusNull() {
                return this.IsNull(this.tableBOOK_INFO.StatusColumn);
            }
            
            public void SetStatusNull() {
                this[this.tableBOOK_INFO.StatusColumn] = System.Convert.DBNull;
            }
            
            public bool IsCurrentShareInfoNull() {
                return this.IsNull(this.tableBOOK_INFO.CurrentShareInfoColumn);
            }
            
            public void SetCurrentShareInfoNull() {
                this[this.tableBOOK_INFO.CurrentShareInfoColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class BOOK_INFORowChangeEvent : EventArgs {
            
            private BOOK_INFORow eventRow;
            
            private DataRowAction eventAction;
            
            public BOOK_INFORowChangeEvent(BOOK_INFORow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public BOOK_INFORow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class USER_INFODataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnID;
            
            private DataColumn columnRealName;
            
            private DataColumn columnUserName;
            
            private DataColumn columnPassword;
            
            private DataColumn columnAddress;
            
            private DataColumn columnEmail;
            
            private DataColumn columnMobilePhone;
            
            private DataColumn columnHomePhone;
            
            private DataColumn columnWorkPhone;
            
            private DataColumn columnCompany;
            
            private DataColumn columnCompanyAddress;
            
            private DataColumn columnCredit;
            
            internal USER_INFODataTable() : 
                    base("USER_INFO") {
                this.InitClass();
            }
            
            internal USER_INFODataTable(DataTable table) : 
                    base(table.TableName) {
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn IDColumn {
                get {
                    return this.columnID;
                }
            }
            
            internal DataColumn RealNameColumn {
                get {
                    return this.columnRealName;
                }
            }
            
            internal DataColumn UserNameColumn {
                get {
                    return this.columnUserName;
                }
            }
            
            internal DataColumn PasswordColumn {
                get {
                    return this.columnPassword;
                }
            }
            
            internal DataColumn AddressColumn {
                get {
                    return this.columnAddress;
                }
            }
            
            internal DataColumn EmailColumn {
                get {
                    return this.columnEmail;
                }
            }
            
            internal DataColumn MobilePhoneColumn {
                get {
                    return this.columnMobilePhone;
                }
            }
            
            internal DataColumn HomePhoneColumn {
                get {
                    return this.columnHomePhone;
                }
            }
            
            internal DataColumn WorkPhoneColumn {
                get {
                    return this.columnWorkPhone;
                }
            }
            
            internal DataColumn CompanyColumn {
                get {
                    return this.columnCompany;
                }
            }
            
            internal DataColumn CompanyAddressColumn {
                get {
                    return this.columnCompanyAddress;
                }
            }
            
            internal DataColumn CreditColumn {
                get {
                    return this.columnCredit;
                }
            }
            
            public USER_INFORow this[int index] {
                get {
                    return ((USER_INFORow)(this.Rows[index]));
                }
            }
            
            public event USER_INFORowChangeEventHandler USER_INFORowChanged;
            
            public event USER_INFORowChangeEventHandler USER_INFORowChanging;
            
            public event USER_INFORowChangeEventHandler USER_INFORowDeleted;
            
            public event USER_INFORowChangeEventHandler USER_INFORowDeleting;
            
            public void AddUSER_INFORow(USER_INFORow row) {
                this.Rows.Add(row);
            }
            
            public USER_INFORow AddUSER_INFORow(string RealName, string UserName, string Password, string Address, string Email, string MobilePhone, string HomePhone, string WorkPhone, string Company, string CompanyAddress, int Credit) {
                USER_INFORow rowUSER_INFORow = ((USER_INFORow)(this.NewRow()));
                rowUSER_INFORow.ItemArray = new object[] {
                        null,
                        RealName,
                        UserName,
                        Password,
                        Address,
                        Email,
                        MobilePhone,
                        HomePhone,
                        WorkPhone,
                        Company,
                        CompanyAddress,
                        Credit};
                this.Rows.Add(rowUSER_INFORow);
                return rowUSER_INFORow;
            }
            
            public USER_INFORow FindByID(int ID) {
                return ((USER_INFORow)(this.Rows.Find(new object[] {
                            ID})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                USER_INFODataTable cln = ((USER_INFODataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new USER_INFODataTable();
            }
            
            internal void InitVars() {
                this.columnID = this.Columns["ID"];
                this.columnRealName = this.Columns["RealName"];
                this.columnUserName = this.Columns["UserName"];
                this.columnPassword = this.Columns["Password"];
                this.columnAddress = this.Columns["Address"];
                this.columnEmail = this.Columns["Email"];
                this.columnMobilePhone = this.Columns["MobilePhone"];
                this.columnHomePhone = this.Columns["HomePhone"];
                this.columnWorkPhone = this.Columns["WorkPhone"];
                this.columnCompany = this.Columns["Company"];
                this.columnCompanyAddress = this.Columns["CompanyAddress"];
                this.columnCredit = this.Columns["Credit"];
            }
            
            private void InitClass() {
                this.columnID = new DataColumn("ID", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnID);
                this.columnRealName = new DataColumn("RealName", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnRealName);
                this.columnUserName = new DataColumn("UserName", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnUserName);
                this.columnPassword = new DataColumn("Password", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPassword);
                this.columnAddress = new DataColumn("Address", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnAddress);
                this.columnEmail = new DataColumn("Email", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnEmail);
                this.columnMobilePhone = new DataColumn("MobilePhone", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMobilePhone);
                this.columnHomePhone = new DataColumn("HomePhone", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnHomePhone);
                this.columnWorkPhone = new DataColumn("WorkPhone", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnWorkPhone);
                this.columnCompany = new DataColumn("Company", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnCompany);
                this.columnCompanyAddress = new DataColumn("CompanyAddress", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnCompanyAddress);
                this.columnCredit = new DataColumn("Credit", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnCredit);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.columnID}, true));
                this.columnID.AutoIncrement = true;
                this.columnID.AllowDBNull = false;
                this.columnID.ReadOnly = true;
                this.columnID.Unique = true;
                this.columnRealName.AllowDBNull = false;
                this.columnUserName.AllowDBNull = false;
                this.columnPassword.AllowDBNull = false;
                this.columnAddress.AllowDBNull = false;
                this.columnEmail.AllowDBNull = false;
                this.columnMobilePhone.AllowDBNull = false;
                this.columnCredit.AllowDBNull = false;
            }
            
            public USER_INFORow NewUSER_INFORow() {
                return ((USER_INFORow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new USER_INFORow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(USER_INFORow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.USER_INFORowChanged != null)) {
                    this.USER_INFORowChanged(this, new USER_INFORowChangeEvent(((USER_INFORow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.USER_INFORowChanging != null)) {
                    this.USER_INFORowChanging(this, new USER_INFORowChangeEvent(((USER_INFORow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.USER_INFORowDeleted != null)) {
                    this.USER_INFORowDeleted(this, new USER_INFORowChangeEvent(((USER_INFORow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.USER_INFORowDeleting != null)) {
                    this.USER_INFORowDeleting(this, new USER_INFORowChangeEvent(((USER_INFORow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveUSER_INFORow(USER_INFORow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class USER_INFORow : DataRow {
            
            private USER_INFODataTable tableUSER_INFO;
            
            internal USER_INFORow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableUSER_INFO = ((USER_INFODataTable)(this.Table));
            }
            
            public int ID {
                get {
                    return ((int)(this[this.tableUSER_INFO.IDColumn]));
                }
                set {
                    this[this.tableUSER_INFO.IDColumn] = value;
                }
            }
            
            public string RealName {
                get {
                    return ((string)(this[this.tableUSER_INFO.RealNameColumn]));
                }
                set {
                    this[this.tableUSER_INFO.RealNameColumn] = value;
                }
            }
            
            public string UserName {
                get {
                    return ((string)(this[this.tableUSER_INFO.UserNameColumn]));
                }
                set {
                    this[this.tableUSER_INFO.UserNameColumn] = value;
                }
            }
            
            public string Password {
                get {
                    return ((string)(this[this.tableUSER_INFO.PasswordColumn]));
                }
                set {
                    this[this.tableUSER_INFO.PasswordColumn] = value;
                }
            }
            
            public string Address {
                get {
                    return ((string)(this[this.tableUSER_INFO.AddressColumn]));
                }
                set {
                    this[this.tableUSER_INFO.AddressColumn] = value;
                }
            }
            
            public string Email {
                get {
                    return ((string)(this[this.tableUSER_INFO.EmailColumn]));
                }
                set {
                    this[this.tableUSER_INFO.EmailColumn] = value;
                }
            }
            
            public string MobilePhone {
                get {
                    return ((string)(this[this.tableUSER_INFO.MobilePhoneColumn]));
                }
                set {
                    this[this.tableUSER_INFO.MobilePhoneColumn] = value;
                }
            }
            
            public string HomePhone {
                get {
                    try {
                        return ((string)(this[this.tableUSER_INFO.HomePhoneColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableUSER_INFO.HomePhoneColumn] = value;
                }
            }
            
            public string WorkPhone {
                get {
                    try {
                        return ((string)(this[this.tableUSER_INFO.WorkPhoneColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableUSER_INFO.WorkPhoneColumn] = value;
                }
            }
            
            public string Company {
                get {
                    try {
                        return ((string)(this[this.tableUSER_INFO.CompanyColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableUSER_INFO.CompanyColumn] = value;
                }
            }
            
            public string CompanyAddress {
                get {
                    try {
                        return ((string)(this[this.tableUSER_INFO.CompanyAddressColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableUSER_INFO.CompanyAddressColumn] = value;
                }
            }
            
            public int Credit {
                get {
                    return ((int)(this[this.tableUSER_INFO.CreditColumn]));
                }
                set {
                    this[this.tableUSER_INFO.CreditColumn] = value;
                }
            }
            
            public bool IsHomePhoneNull() {
                return this.IsNull(this.tableUSER_INFO.HomePhoneColumn);
            }
            
            public void SetHomePhoneNull() {
                this[this.tableUSER_INFO.HomePhoneColumn] = System.Convert.DBNull;
            }
            
            public bool IsWorkPhoneNull() {
                return this.IsNull(this.tableUSER_INFO.WorkPhoneColumn);
            }
            
            public void SetWorkPhoneNull() {
                this[this.tableUSER_INFO.WorkPhoneColumn] = System.Convert.DBNull;
            }
            
            public bool IsCompanyNull() {
                return this.IsNull(this.tableUSER_INFO.CompanyColumn);
            }
            
            public void SetCompanyNull() {
                this[this.tableUSER_INFO.CompanyColumn] = System.Convert.DBNull;
            }
            
            public bool IsCompanyAddressNull() {
                return this.IsNull(this.tableUSER_INFO.CompanyAddressColumn);
            }
            
            public void SetCompanyAddressNull() {
                this[this.tableUSER_INFO.CompanyAddressColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class USER_INFORowChangeEvent : EventArgs {
            
            private USER_INFORow eventRow;
            
            private DataRowAction eventAction;
            
            public USER_INFORowChangeEvent(USER_INFORow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public USER_INFORow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class MESSAGE_INFODataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnID;
            
            private DataColumn columnMessageType;
            
            private DataColumn columnMessageTo;
            
            private DataColumn columnMessageFrom;
            
            private DataColumn columnTitle;
            
            private DataColumn columnBody;
            
            private DataColumn columnHasRead;
            
            internal MESSAGE_INFODataTable() : 
                    base("MESSAGE_INFO") {
                this.InitClass();
            }
            
            internal MESSAGE_INFODataTable(DataTable table) : 
                    base(table.TableName) {
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn IDColumn {
                get {
                    return this.columnID;
                }
            }
            
            internal DataColumn MessageTypeColumn {
                get {
                    return this.columnMessageType;
                }
            }
            
            internal DataColumn MessageToColumn {
                get {
                    return this.columnMessageTo;
                }
            }
            
            internal DataColumn MessageFromColumn {
                get {
                    return this.columnMessageFrom;
                }
            }
            
            internal DataColumn TitleColumn {
                get {
                    return this.columnTitle;
                }
            }
            
            internal DataColumn BodyColumn {
                get {
                    return this.columnBody;
                }
            }
            
            internal DataColumn HasReadColumn {
                get {
                    return this.columnHasRead;
                }
            }
            
            public MESSAGE_INFORow this[int index] {
                get {
                    return ((MESSAGE_INFORow)(this.Rows[index]));
                }
            }
            
            public event MESSAGE_INFORowChangeEventHandler MESSAGE_INFORowChanged;
            
            public event MESSAGE_INFORowChangeEventHandler MESSAGE_INFORowChanging;
            
            public event MESSAGE_INFORowChangeEventHandler MESSAGE_INFORowDeleted;
            
            public event MESSAGE_INFORowChangeEventHandler MESSAGE_INFORowDeleting;
            
            public void AddMESSAGE_INFORow(MESSAGE_INFORow row) {
                this.Rows.Add(row);
            }
            
            public MESSAGE_INFORow AddMESSAGE_INFORow(string MessageType, int MessageTo, int MessageFrom, string Title, string Body, int HasRead) {
                MESSAGE_INFORow rowMESSAGE_INFORow = ((MESSAGE_INFORow)(this.NewRow()));
                rowMESSAGE_INFORow.ItemArray = new object[] {
                        null,
                        MessageType,
                        MessageTo,
                        MessageFrom,
                        Title,
                        Body,
                        HasRead};
                this.Rows.Add(rowMESSAGE_INFORow);
                return rowMESSAGE_INFORow;
            }
            
            public MESSAGE_INFORow FindByID(int ID) {
                return ((MESSAGE_INFORow)(this.Rows.Find(new object[] {
                            ID})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                MESSAGE_INFODataTable cln = ((MESSAGE_INFODataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new MESSAGE_INFODataTable();
            }
            
            internal void InitVars() {
                this.columnID = this.Columns["ID"];
                this.columnMessageType = this.Columns["MessageType"];
                this.columnMessageTo = this.Columns["MessageTo"];
                this.columnMessageFrom = this.Columns["MessageFrom"];
                this.columnTitle = this.Columns["Title"];
                this.columnBody = this.Columns["Body"];
                this.columnHasRead = this.Columns["HasRead"];
            }
            
            private void InitClass() {
                this.columnID = new DataColumn("ID", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnID);
                this.columnMessageType = new DataColumn("MessageType", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMessageType);
                this.columnMessageTo = new DataColumn("MessageTo", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMessageTo);
                this.columnMessageFrom = new DataColumn("MessageFrom", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnMessageFrom);
                this.columnTitle = new DataColumn("Title", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnTitle);
                this.columnBody = new DataColumn("Body", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnBody);
                this.columnHasRead = new DataColumn("HasRead", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnHasRead);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.columnID}, true));
                this.columnID.AutoIncrement = true;
                this.columnID.AllowDBNull = false;
                this.columnID.ReadOnly = true;
                this.columnID.Unique = true;
            }
            
            public MESSAGE_INFORow NewMESSAGE_INFORow() {
                return ((MESSAGE_INFORow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new MESSAGE_INFORow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(MESSAGE_INFORow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.MESSAGE_INFORowChanged != null)) {
                    this.MESSAGE_INFORowChanged(this, new MESSAGE_INFORowChangeEvent(((MESSAGE_INFORow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.MESSAGE_INFORowChanging != null)) {
                    this.MESSAGE_INFORowChanging(this, new MESSAGE_INFORowChangeEvent(((MESSAGE_INFORow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.MESSAGE_INFORowDeleted != null)) {
                    this.MESSAGE_INFORowDeleted(this, new MESSAGE_INFORowChangeEvent(((MESSAGE_INFORow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.MESSAGE_INFORowDeleting != null)) {
                    this.MESSAGE_INFORowDeleting(this, new MESSAGE_INFORowChangeEvent(((MESSAGE_INFORow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveMESSAGE_INFORow(MESSAGE_INFORow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class MESSAGE_INFORow : DataRow {
            
            private MESSAGE_INFODataTable tableMESSAGE_INFO;
            
            internal MESSAGE_INFORow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableMESSAGE_INFO = ((MESSAGE_INFODataTable)(this.Table));
            }
            
            public int ID {
                get {
                    return ((int)(this[this.tableMESSAGE_INFO.IDColumn]));
                }
                set {
                    this[this.tableMESSAGE_INFO.IDColumn] = value;
                }
            }
            
            public string MessageType {
                get {
                    try {
                        return ((string)(this[this.tableMESSAGE_INFO.MessageTypeColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableMESSAGE_INFO.MessageTypeColumn] = value;
                }
            }
            
            public int MessageTo {
                get {
                    try {
                        return ((int)(this[this.tableMESSAGE_INFO.MessageToColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableMESSAGE_INFO.MessageToColumn] = value;
                }
            }
            
            public int MessageFrom {
                get {
                    try {
                        return ((int)(this[this.tableMESSAGE_INFO.MessageFromColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableMESSAGE_INFO.MessageFromColumn] = value;
                }
            }
            
            public string Title {
                get {
                    try {
                        return ((string)(this[this.tableMESSAGE_INFO.TitleColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableMESSAGE_INFO.TitleColumn] = value;
                }
            }
            
            public string Body {
                get {
                    try {
                        return ((string)(this[this.tableMESSAGE_INFO.BodyColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableMESSAGE_INFO.BodyColumn] = value;
                }
            }
            
            public int HasRead {
                get {
                    try {
                        return ((int)(this[this.tableMESSAGE_INFO.HasReadColumn]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值，因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.tableMESSAGE_INFO.HasReadColumn] = value;
                }
            }
            
            public bool IsMessageTypeNull() {
                return this.IsNull(this.tableMESSAGE_INFO.MessageTypeColumn);
            }
            
            public void SetMessageTypeNull() {
                this[this.tableMESSAGE_INFO.MessageTypeColumn] = System.Convert.DBNull;
            }
            
            public bool IsMessageToNull() {
                return this.IsNull(this.tableMESSAGE_INFO.MessageToColumn);
            }
            
            public void SetMessageToNull() {
                this[this.tableMESSAGE_INFO.MessageToColumn] = System.Convert.DBNull;
            }
            
            public bool IsMessageFromNull() {
                return this.IsNull(this.tableMESSAGE_INFO.MessageFromColumn);
            }
            
            public void SetMessageFromNull() {
                this[this.tableMESSAGE_INFO.MessageFromColumn] = System.Convert.DBNull;
            }
            
            public bool IsTitleNull() {
                return this.IsNull(this.tableMESSAGE_INFO.TitleColumn);
            }
            
            public void SetTitleNull() {
                this[this.tableMESSAGE_INFO.TitleColumn] = System.Convert.DBNull;
            }
            
            public bool IsBodyNull() {
                return this.IsNull(this.tableMESSAGE_INFO.BodyColumn);
            }
            
            public void SetBodyNull() {
                this[this.tableMESSAGE_INFO.BodyColumn] = System.Convert.DBNull;
            }
            
            public bool IsHasReadNull() {
                return this.IsNull(this.tableMESSAGE_INFO.HasReadColumn);
            }
            
            public void SetHasReadNull() {
                this[this.tableMESSAGE_INFO.HasReadColumn] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class MESSAGE_INFORowChangeEvent : EventArgs {
            
            private MESSAGE_INFORow eventRow;
            
            private DataRowAction eventAction;
            
            public MESSAGE_INFORowChangeEvent(MESSAGE_INFORow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public MESSAGE_INFORow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}
