mydatabasedataset.designer.cs

来自「csharp课本的源代码」· CS 代码 · 共 1,288 行 · 第 1/5 页

CS
1,288
字号
            private System.Data.DataColumn column学号;
            
            private System.Data.DataColumn column姓名;
            
            private System.Data.DataColumn column性别;
            
            private System.Data.DataColumn column出生日期;
            
            private System.Data.DataColumn column学院编码;
            
            private System.Data.DataColumn column成绩;
            
            private System.Data.DataColumn column照片;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SelectFilterStudentsDataTable() {
                this.TableName = "SelectFilterStudents";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal SelectFilterStudentsDataTable(System.Data.DataTable table) {
                this.TableName = 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;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected SelectFilterStudentsDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                    base(info, context) {
                this.InitVars();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn 学号Column {
                get {
                    return this.column学号;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn 姓名Column {
                get {
                    return this.column姓名;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn 性别Column {
                get {
                    return this.column性别;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn 出生日期Column {
                get {
                    return this.column出生日期;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn 学院编码Column {
                get {
                    return this.column学院编码;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn 成绩Column {
                get {
                    return this.column成绩;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn 照片Column {
                get {
                    return this.column照片;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SelectFilterStudentsRow this[int index] {
                get {
                    return ((SelectFilterStudentsRow)(this.Rows[index]));
                }
            }
            
            public event SelectFilterStudentsRowChangeEventHandler SelectFilterStudentsRowChanging;
            
            public event SelectFilterStudentsRowChangeEventHandler SelectFilterStudentsRowChanged;
            
            public event SelectFilterStudentsRowChangeEventHandler SelectFilterStudentsRowDeleting;
            
            public event SelectFilterStudentsRowChangeEventHandler SelectFilterStudentsRowDeleted;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddSelectFilterStudentsRow(SelectFilterStudentsRow row) {
                this.Rows.Add(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SelectFilterStudentsRow AddSelectFilterStudentsRow(string 学号, string 姓名, string 性别, System.DateTime 出生日期, string 学院编码, int 成绩, byte[] 照片) {
                SelectFilterStudentsRow rowSelectFilterStudentsRow = ((SelectFilterStudentsRow)(this.NewRow()));
                rowSelectFilterStudentsRow.ItemArray = new object[] {
                        学号,
                        姓名,
                        性别,
                        出生日期,
                        学院编码,
                        成绩,
                        照片};
                this.Rows.Add(rowSelectFilterStudentsRow);
                return rowSelectFilterStudentsRow;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SelectFilterStudentsRow FindBy学号(string 学号) {
                return ((SelectFilterStudentsRow)(this.Rows.Find(new object[] {
                            学号})));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override System.Data.DataTable Clone() {
                SelectFilterStudentsDataTable cln = ((SelectFilterStudentsDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataTable CreateInstance() {
                return new SelectFilterStudentsDataTable();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.column学号 = base.Columns["学号"];
                this.column姓名 = base.Columns["姓名"];
                this.column性别 = base.Columns["性别"];
                this.column出生日期 = base.Columns["出生日期"];
                this.column学院编码 = base.Columns["学院编码"];
                this.column成绩 = base.Columns["成绩"];
                this.column照片 = base.Columns["照片"];
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.column学号 = new System.Data.DataColumn("学号", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column学号);
                this.column姓名 = new System.Data.DataColumn("姓名", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column姓名);
                this.column性别 = new System.Data.DataColumn("性别", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column性别);
                this.column出生日期 = new System.Data.DataColumn("出生日期", typeof(System.DateTime), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column出生日期);
                this.column学院编码 = new System.Data.DataColumn("学院编码", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column学院编码);
                this.column成绩 = new System.Data.DataColumn("成绩", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column成绩);
                this.column照片 = new System.Data.DataColumn("照片", typeof(byte[]), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column照片);
                this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
                                this.column学号}, true));
                this.column学号.AllowDBNull = false;
                this.column学号.Unique = true;
                this.column学号.MaxLength = 8;
                this.column姓名.MaxLength = 50;
                this.column性别.MaxLength = 1;
                this.column学院编码.MaxLength = 2;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public SelectFilterStudentsRow NewSelectFilterStudentsRow() {
                return ((SelectFilterStudentsRow)(this.NewRow()));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
                return new SelectFilterStudentsRow(builder);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Type GetRowType() {
                return typeof(SelectFilterStudentsRow);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.SelectFilterStudentsRowChanged != null)) {
                    this.SelectFilterStudentsRowChanged(this, new SelectFilterStudentsRowChangeEvent(((SelectFilterStudentsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.SelectFilterStudentsRowChanging != null)) {
                    this.SelectFilterStudentsRowChanging(this, new SelectFilterStudentsRowChangeEvent(((SelectFilterStudentsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.SelectFilterStudentsRowDeleted != null)) {
                    this.SelectFilterStudentsRowDeleted(this, new SelectFilterStudentsRowChangeEvent(((SelectFilterStudentsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.SelectFilterStudentsRowDeleting != null)) {
                    this.SelectFilterStudentsRowDeleting(this, new SelectFilterStudentsRowChangeEvent(((SelectFilterStudentsRow)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void RemoveSelectFilterStudentsRow(SelectFilterStudentsRow row) {
                this.Rows.Remove(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
                System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
                System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
                MyDatabaseDataSet ds = new MyDatabaseDataSet();
                xs.Add(ds.GetSchemaSerializable());
                System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs = new decimal(0);
                any1.MaxOccurs = decimal.MaxValue;

⌨️ 快捷键说明

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