⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataset1.cs

📁 vb 图书馆管理系统。
💻 CS
📖 第 1 页 / 共 3 页
字号:
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.0.3705.0
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

namespace TSC {
    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 SDataTable tableS;
        
        private ABCDEDataTable tableABCDE;
        
        private TDataTable tableT;
        
        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["S"] != null)) {
                    this.Tables.Add(new SDataTable(ds.Tables["S"]));
                }
                if ((ds.Tables["ABCDE"] != null)) {
                    this.Tables.Add(new ABCDEDataTable(ds.Tables["ABCDE"]));
                }
                if ((ds.Tables["T"] != null)) {
                    this.Tables.Add(new TDataTable(ds.Tables["T"]));
                }
                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 SDataTable S {
            get {
                return this.tableS;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public ABCDEDataTable ABCDE {
            get {
                return this.tableABCDE;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public TDataTable T {
            get {
                return this.tableT;
            }
        }
        
        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["S"] != null)) {
                this.Tables.Add(new SDataTable(ds.Tables["S"]));
            }
            if ((ds.Tables["ABCDE"] != null)) {
                this.Tables.Add(new ABCDEDataTable(ds.Tables["ABCDE"]));
            }
            if ((ds.Tables["T"] != null)) {
                this.Tables.Add(new TDataTable(ds.Tables["T"]));
            }
            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.tableS = ((SDataTable)(this.Tables["S"]));
            if ((this.tableS != null)) {
                this.tableS.InitVars();
            }
            this.tableABCDE = ((ABCDEDataTable)(this.Tables["ABCDE"]));
            if ((this.tableABCDE != null)) {
                this.tableABCDE.InitVars();
            }
            this.tableT = ((TDataTable)(this.Tables["T"]));
            if ((this.tableT != null)) {
                this.tableT.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.tableS = new SDataTable();
            this.Tables.Add(this.tableS);
            this.tableABCDE = new ABCDEDataTable();
            this.Tables.Add(this.tableABCDE);
            this.tableT = new TDataTable();
            this.Tables.Add(this.tableT);
        }
        
        private bool ShouldSerializeS() {
            return false;
        }
        
        private bool ShouldSerializeABCDE() {
            return false;
        }
        
        private bool ShouldSerializeT() {
            return false;
        }
        
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        public delegate void SRowChangeEventHandler(object sender, SRowChangeEvent e);
        
        public delegate void ABCDERowChangeEventHandler(object sender, ABCDERowChangeEvent e);
        
        public delegate void TRowChangeEventHandler(object sender, TRowChangeEvent e);
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class SDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnSno;
            
            private DataColumn columnSname;
            
            private DataColumn columnSage;
            
            private DataColumn columnSsex;
            
            private DataColumn columnScourse1;
            
            private DataColumn columnScourse2;
            
            private DataColumn columnScourse3;
            
            internal SDataTable() : 
                    base("S") {
                this.InitClass();
            }
            
            internal SDataTable(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 SnoColumn {
                get {
                    return this.columnSno;
                }
            }
            
            internal DataColumn SnameColumn {
                get {
                    return this.columnSname;
                }
            }
            
            internal DataColumn SageColumn {
                get {
                    return this.columnSage;
                }
            }
            
            internal DataColumn SsexColumn {
                get {
                    return this.columnSsex;
                }
            }
            
            internal DataColumn Scourse1Column {
                get {
                    return this.columnScourse1;
                }
            }
            
            internal DataColumn Scourse2Column {
                get {
                    return this.columnScourse2;
                }
            }
            
            internal DataColumn Scourse3Column {
                get {
                    return this.columnScourse3;
                }
            }
            
            public SRow this[int index] {
                get {
                    return ((SRow)(this.Rows[index]));
                }
            }
            
            public event SRowChangeEventHandler SRowChanged;
            
            public event SRowChangeEventHandler SRowChanging;
            
            public event SRowChangeEventHandler SRowDeleted;
            
            public event SRowChangeEventHandler SRowDeleting;
            
            public void AddSRow(SRow row) {
                this.Rows.Add(row);
            }
            
            public SRow AddSRow(string Sno, string Sname, int Sage, string Ssex, string Scourse1, string Scourse2, string Scourse3) {
                SRow rowSRow = ((SRow)(this.NewRow()));
                rowSRow.ItemArray = new object[] {
                        Sno,
                        Sname,
                        Sage,
                        Ssex,
                        Scourse1,
                        Scourse2,
                        Scourse3};
                this.Rows.Add(rowSRow);
                return rowSRow;
            }
            
            public SRow FindBySno(string Sno) {
                return ((SRow)(this.Rows.Find(new object[] {
                            Sno})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                SDataTable cln = ((SDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new SDataTable();
            }
            
            internal void InitVars() {
                this.columnSno = this.Columns["Sno"];
                this.columnSname = this.Columns["Sname"];
                this.columnSage = this.Columns["Sage"];
                this.columnSsex = this.Columns["Ssex"];
                this.columnScourse1 = this.Columns["Scourse1"];
                this.columnScourse2 = this.Columns["Scourse2"];
                this.columnScourse3 = this.Columns["Scourse3"];
            }
            
            private void InitClass() {
                this.columnSno = new DataColumn("Sno", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSno);
                this.columnSname = new DataColumn("Sname", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSname);
                this.columnSage = new DataColumn("Sage", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSage);
                this.columnSsex = new DataColumn("Ssex", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnSsex);
                this.columnScourse1 = new DataColumn("Scourse1", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnScourse1);
                this.columnScourse2 = new DataColumn("Scourse2", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnScourse2);
                this.columnScourse3 = new DataColumn("Scourse3", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnScourse3);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.columnSno}, true));
                this.columnSno.AllowDBNull = false;
                this.columnSno.Unique = true;
                this.columnSname.AllowDBNull = false;
                this.columnSage.AllowDBNull = false;
                this.columnSsex.AllowDBNull = false;
            }
            
            public SRow NewSRow() {
                return ((SRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new SRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(SRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -