DataSet1.cs
资源名称:VCSDB.rar [点击查看]
上传用户:hjieqiu
上传日期:2013-05-11
资源大小:16494k
文件大小:98k
源码类别:
企业管理
开发平台:
C#
- //------------------------------------------------------------------------------
- // <autogenerated>
- // This code was generated by a tool.
- // Runtime Version: 1.1.4322.573
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </autogenerated>
- //------------------------------------------------------------------------------
- namespace 教务管理系统 {
- 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 政治面貌代码表DataTable table政治面貌代码表;
- private 籍贯代码表DataTable table籍贯代码表;
- private 民族代码表DataTable table民族代码表;
- private 学籍代码表DataTable table学籍代码表;
- private 班级信息DataTable table班级信息;
- private 学生信息DataTable table学生信息;
- private 课程信息DataTable table课程信息;
- 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["政治面貌代码表"] != null)) {
- this.Tables.Add(new 政治面貌代码表DataTable(ds.Tables["政治面貌代码表"]));
- }
- if ((ds.Tables["籍贯代码表"] != null)) {
- this.Tables.Add(new 籍贯代码表DataTable(ds.Tables["籍贯代码表"]));
- }
- if ((ds.Tables["民族代码表"] != null)) {
- this.Tables.Add(new 民族代码表DataTable(ds.Tables["民族代码表"]));
- }
- if ((ds.Tables["学籍代码表"] != null)) {
- this.Tables.Add(new 学籍代码表DataTable(ds.Tables["学籍代码表"]));
- }
- if ((ds.Tables["班级信息"] != null)) {
- this.Tables.Add(new 班级信息DataTable(ds.Tables["班级信息"]));
- }
- if ((ds.Tables["学生信息"] != null)) {
- this.Tables.Add(new 学生信息DataTable(ds.Tables["学生信息"]));
- }
- if ((ds.Tables["课程信息"] != null)) {
- this.Tables.Add(new 课程信息DataTable(ds.Tables["课程信息"]));
- }
- 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 政治面貌代码表DataTable 政治面貌代码表 {
- get {
- return this.table政治面貌代码表;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 籍贯代码表DataTable 籍贯代码表 {
- get {
- return this.table籍贯代码表;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 民族代码表DataTable 民族代码表 {
- get {
- return this.table民族代码表;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 学籍代码表DataTable 学籍代码表 {
- get {
- return this.table学籍代码表;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 班级信息DataTable 班级信息 {
- get {
- return this.table班级信息;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 学生信息DataTable 学生信息 {
- get {
- return this.table学生信息;
- }
- }
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public 课程信息DataTable 课程信息 {
- get {
- return this.table课程信息;
- }
- }
- 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["政治面貌代码表"] != null)) {
- this.Tables.Add(new 政治面貌代码表DataTable(ds.Tables["政治面貌代码表"]));
- }
- if ((ds.Tables["籍贯代码表"] != null)) {
- this.Tables.Add(new 籍贯代码表DataTable(ds.Tables["籍贯代码表"]));
- }
- if ((ds.Tables["民族代码表"] != null)) {
- this.Tables.Add(new 民族代码表DataTable(ds.Tables["民族代码表"]));
- }
- if ((ds.Tables["学籍代码表"] != null)) {
- this.Tables.Add(new 学籍代码表DataTable(ds.Tables["学籍代码表"]));
- }
- if ((ds.Tables["班级信息"] != null)) {
- this.Tables.Add(new 班级信息DataTable(ds.Tables["班级信息"]));
- }
- if ((ds.Tables["学生信息"] != null)) {
- this.Tables.Add(new 学生信息DataTable(ds.Tables["学生信息"]));
- }
- if ((ds.Tables["课程信息"] != null)) {
- this.Tables.Add(new 课程信息DataTable(ds.Tables["课程信息"]));
- }
- 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.table政治面貌代码表 = ((政治面貌代码表DataTable)(this.Tables["政治面貌代码表"]));
- if ((this.table政治面貌代码表 != null)) {
- this.table政治面貌代码表.InitVars();
- }
- this.table籍贯代码表 = ((籍贯代码表DataTable)(this.Tables["籍贯代码表"]));
- if ((this.table籍贯代码表 != null)) {
- this.table籍贯代码表.InitVars();
- }
- this.table民族代码表 = ((民族代码表DataTable)(this.Tables["民族代码表"]));
- if ((this.table民族代码表 != null)) {
- this.table民族代码表.InitVars();
- }
- this.table学籍代码表 = ((学籍代码表DataTable)(this.Tables["学籍代码表"]));
- if ((this.table学籍代码表 != null)) {
- this.table学籍代码表.InitVars();
- }
- this.table班级信息 = ((班级信息DataTable)(this.Tables["班级信息"]));
- if ((this.table班级信息 != null)) {
- this.table班级信息.InitVars();
- }
- this.table学生信息 = ((学生信息DataTable)(this.Tables["学生信息"]));
- if ((this.table学生信息 != null)) {
- this.table学生信息.InitVars();
- }
- this.table课程信息 = ((课程信息DataTable)(this.Tables["课程信息"]));
- if ((this.table课程信息 != null)) {
- this.table课程信息.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.table政治面貌代码表 = new 政治面貌代码表DataTable();
- this.Tables.Add(this.table政治面貌代码表);
- this.table籍贯代码表 = new 籍贯代码表DataTable();
- this.Tables.Add(this.table籍贯代码表);
- this.table民族代码表 = new 民族代码表DataTable();
- this.Tables.Add(this.table民族代码表);
- this.table学籍代码表 = new 学籍代码表DataTable();
- this.Tables.Add(this.table学籍代码表);
- this.table班级信息 = new 班级信息DataTable();
- this.Tables.Add(this.table班级信息);
- this.table学生信息 = new 学生信息DataTable();
- this.Tables.Add(this.table学生信息);
- this.table课程信息 = new 课程信息DataTable();
- this.Tables.Add(this.table课程信息);
- }
- private bool ShouldSerialize政治面貌代码表() {
- return false;
- }
- private bool ShouldSerialize籍贯代码表() {
- return false;
- }
- private bool ShouldSerialize民族代码表() {
- return false;
- }
- private bool ShouldSerialize学籍代码表() {
- return false;
- }
- private bool ShouldSerialize班级信息() {
- return false;
- }
- private bool ShouldSerialize学生信息() {
- return false;
- }
- private bool ShouldSerialize课程信息() {
- return false;
- }
- private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
- if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
- this.InitVars();
- }
- }
- public delegate void 政治面貌代码表RowChangeEventHandler(object sender, 政治面貌代码表RowChangeEvent e);
- public delegate void 籍贯代码表RowChangeEventHandler(object sender, 籍贯代码表RowChangeEvent e);
- public delegate void 民族代码表RowChangeEventHandler(object sender, 民族代码表RowChangeEvent e);
- public delegate void 学籍代码表RowChangeEventHandler(object sender, 学籍代码表RowChangeEvent e);
- public delegate void 班级信息RowChangeEventHandler(object sender, 班级信息RowChangeEvent e);
- public delegate void 学生信息RowChangeEventHandler(object sender, 学生信息RowChangeEvent e);
- public delegate void 课程信息RowChangeEventHandler(object sender, 课程信息RowChangeEvent e);
- [System.Diagnostics.DebuggerStepThrough()]
- public class 政治面貌代码表DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column政治面貌编号;
- private DataColumn column政治面貌;
- internal 政治面貌代码表DataTable() :
- base("政治面貌代码表") {
- this.InitClass();
- }
- internal 政治面貌代码表DataTable(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 政治面貌编号Column {
- get {
- return this.column政治面貌编号;
- }
- }
- internal DataColumn 政治面貌Column {
- get {
- return this.column政治面貌;
- }
- }
- public 政治面貌代码表Row this[int index] {
- get {
- return ((政治面貌代码表Row)(this.Rows[index]));
- }
- }
- public event 政治面貌代码表RowChangeEventHandler 政治面貌代码表RowChanged;
- public event 政治面貌代码表RowChangeEventHandler 政治面貌代码表RowChanging;
- public event 政治面貌代码表RowChangeEventHandler 政治面貌代码表RowDeleted;
- public event 政治面貌代码表RowChangeEventHandler 政治面貌代码表RowDeleting;
- public void Add政治面貌代码表Row(政治面貌代码表Row row) {
- this.Rows.Add(row);
- }
- public 政治面貌代码表Row Add政治面貌代码表Row(string 政治面貌编号, string 政治面貌) {
- 政治面貌代码表Row row政治面貌代码表Row = ((政治面貌代码表Row)(this.NewRow()));
- row政治面貌代码表Row.ItemArray = new object[] {
- 政治面貌编号,
- 政治面貌};
- this.Rows.Add(row政治面貌代码表Row);
- return row政治面貌代码表Row;
- }
- public 政治面貌代码表Row FindBy政治面貌编号(string 政治面貌编号) {
- return ((政治面貌代码表Row)(this.Rows.Find(new object[] {
- 政治面貌编号})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 政治面貌代码表DataTable cln = ((政治面貌代码表DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 政治面貌代码表DataTable();
- }
- internal void InitVars() {
- this.column政治面貌编号 = this.Columns["政治面貌编号"];
- this.column政治面貌 = this.Columns["政治面貌"];
- }
- private void InitClass() {
- this.column政治面貌编号 = new DataColumn("政治面貌编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column政治面貌编号);
- this.column政治面貌 = new DataColumn("政治面貌", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column政治面貌);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column政治面貌编号}, true));
- this.column政治面貌编号.AllowDBNull = false;
- this.column政治面貌编号.Unique = true;
- }
- public 政治面貌代码表Row New政治面貌代码表Row() {
- return ((政治面貌代码表Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 政治面貌代码表Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(政治面貌代码表Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.政治面貌代码表RowChanged != null)) {
- this.政治面貌代码表RowChanged(this, new 政治面貌代码表RowChangeEvent(((政治面貌代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.政治面貌代码表RowChanging != null)) {
- this.政治面貌代码表RowChanging(this, new 政治面貌代码表RowChangeEvent(((政治面貌代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.政治面貌代码表RowDeleted != null)) {
- this.政治面貌代码表RowDeleted(this, new 政治面貌代码表RowChangeEvent(((政治面貌代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.政治面貌代码表RowDeleting != null)) {
- this.政治面貌代码表RowDeleting(this, new 政治面貌代码表RowChangeEvent(((政治面貌代码表Row)(e.Row)), e.Action));
- }
- }
- public void Remove政治面貌代码表Row(政治面貌代码表Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 政治面貌代码表Row : DataRow {
- private 政治面貌代码表DataTable table政治面貌代码表;
- internal 政治面貌代码表Row(DataRowBuilder rb) :
- base(rb) {
- this.table政治面貌代码表 = ((政治面貌代码表DataTable)(this.Table));
- }
- public string 政治面貌编号 {
- get {
- return ((string)(this[this.table政治面貌代码表.政治面貌编号Column]));
- }
- set {
- this[this.table政治面貌代码表.政治面貌编号Column] = value;
- }
- }
- public string 政治面貌 {
- get {
- try {
- return ((string)(this[this.table政治面貌代码表.政治面貌Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table政治面貌代码表.政治面貌Column] = value;
- }
- }
- public bool Is政治面貌Null() {
- return this.IsNull(this.table政治面貌代码表.政治面貌Column);
- }
- public void Set政治面貌Null() {
- this[this.table政治面貌代码表.政治面貌Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 政治面貌代码表RowChangeEvent : EventArgs {
- private 政治面貌代码表Row eventRow;
- private DataRowAction eventAction;
- public 政治面貌代码表RowChangeEvent(政治面貌代码表Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 政治面貌代码表Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 籍贯代码表DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column籍贯编号;
- private DataColumn column籍贯;
- internal 籍贯代码表DataTable() :
- base("籍贯代码表") {
- this.InitClass();
- }
- internal 籍贯代码表DataTable(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 籍贯编号Column {
- get {
- return this.column籍贯编号;
- }
- }
- internal DataColumn 籍贯Column {
- get {
- return this.column籍贯;
- }
- }
- public 籍贯代码表Row this[int index] {
- get {
- return ((籍贯代码表Row)(this.Rows[index]));
- }
- }
- public event 籍贯代码表RowChangeEventHandler 籍贯代码表RowChanged;
- public event 籍贯代码表RowChangeEventHandler 籍贯代码表RowChanging;
- public event 籍贯代码表RowChangeEventHandler 籍贯代码表RowDeleted;
- public event 籍贯代码表RowChangeEventHandler 籍贯代码表RowDeleting;
- public void Add籍贯代码表Row(籍贯代码表Row row) {
- this.Rows.Add(row);
- }
- public 籍贯代码表Row Add籍贯代码表Row(string 籍贯编号, string 籍贯) {
- 籍贯代码表Row row籍贯代码表Row = ((籍贯代码表Row)(this.NewRow()));
- row籍贯代码表Row.ItemArray = new object[] {
- 籍贯编号,
- 籍贯};
- this.Rows.Add(row籍贯代码表Row);
- return row籍贯代码表Row;
- }
- public 籍贯代码表Row FindBy籍贯编号(string 籍贯编号) {
- return ((籍贯代码表Row)(this.Rows.Find(new object[] {
- 籍贯编号})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 籍贯代码表DataTable cln = ((籍贯代码表DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 籍贯代码表DataTable();
- }
- internal void InitVars() {
- this.column籍贯编号 = this.Columns["籍贯编号"];
- this.column籍贯 = this.Columns["籍贯"];
- }
- private void InitClass() {
- this.column籍贯编号 = new DataColumn("籍贯编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column籍贯编号);
- this.column籍贯 = new DataColumn("籍贯", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column籍贯);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column籍贯编号}, true));
- this.column籍贯编号.AllowDBNull = false;
- this.column籍贯编号.Unique = true;
- }
- public 籍贯代码表Row New籍贯代码表Row() {
- return ((籍贯代码表Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 籍贯代码表Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(籍贯代码表Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.籍贯代码表RowChanged != null)) {
- this.籍贯代码表RowChanged(this, new 籍贯代码表RowChangeEvent(((籍贯代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.籍贯代码表RowChanging != null)) {
- this.籍贯代码表RowChanging(this, new 籍贯代码表RowChangeEvent(((籍贯代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.籍贯代码表RowDeleted != null)) {
- this.籍贯代码表RowDeleted(this, new 籍贯代码表RowChangeEvent(((籍贯代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.籍贯代码表RowDeleting != null)) {
- this.籍贯代码表RowDeleting(this, new 籍贯代码表RowChangeEvent(((籍贯代码表Row)(e.Row)), e.Action));
- }
- }
- public void Remove籍贯代码表Row(籍贯代码表Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 籍贯代码表Row : DataRow {
- private 籍贯代码表DataTable table籍贯代码表;
- internal 籍贯代码表Row(DataRowBuilder rb) :
- base(rb) {
- this.table籍贯代码表 = ((籍贯代码表DataTable)(this.Table));
- }
- public string 籍贯编号 {
- get {
- return ((string)(this[this.table籍贯代码表.籍贯编号Column]));
- }
- set {
- this[this.table籍贯代码表.籍贯编号Column] = value;
- }
- }
- public string 籍贯 {
- get {
- try {
- return ((string)(this[this.table籍贯代码表.籍贯Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table籍贯代码表.籍贯Column] = value;
- }
- }
- public bool Is籍贯Null() {
- return this.IsNull(this.table籍贯代码表.籍贯Column);
- }
- public void Set籍贯Null() {
- this[this.table籍贯代码表.籍贯Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 籍贯代码表RowChangeEvent : EventArgs {
- private 籍贯代码表Row eventRow;
- private DataRowAction eventAction;
- public 籍贯代码表RowChangeEvent(籍贯代码表Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 籍贯代码表Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 民族代码表DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column民族编号;
- private DataColumn column民族;
- internal 民族代码表DataTable() :
- base("民族代码表") {
- this.InitClass();
- }
- internal 民族代码表DataTable(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 民族编号Column {
- get {
- return this.column民族编号;
- }
- }
- internal DataColumn 民族Column {
- get {
- return this.column民族;
- }
- }
- public 民族代码表Row this[int index] {
- get {
- return ((民族代码表Row)(this.Rows[index]));
- }
- }
- public event 民族代码表RowChangeEventHandler 民族代码表RowChanged;
- public event 民族代码表RowChangeEventHandler 民族代码表RowChanging;
- public event 民族代码表RowChangeEventHandler 民族代码表RowDeleted;
- public event 民族代码表RowChangeEventHandler 民族代码表RowDeleting;
- public void Add民族代码表Row(民族代码表Row row) {
- this.Rows.Add(row);
- }
- public 民族代码表Row Add民族代码表Row(string 民族编号, string 民族) {
- 民族代码表Row row民族代码表Row = ((民族代码表Row)(this.NewRow()));
- row民族代码表Row.ItemArray = new object[] {
- 民族编号,
- 民族};
- this.Rows.Add(row民族代码表Row);
- return row民族代码表Row;
- }
- public 民族代码表Row FindBy民族编号(string 民族编号) {
- return ((民族代码表Row)(this.Rows.Find(new object[] {
- 民族编号})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 民族代码表DataTable cln = ((民族代码表DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 民族代码表DataTable();
- }
- internal void InitVars() {
- this.column民族编号 = this.Columns["民族编号"];
- this.column民族 = this.Columns["民族"];
- }
- private void InitClass() {
- this.column民族编号 = new DataColumn("民族编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column民族编号);
- this.column民族 = new DataColumn("民族", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column民族);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column民族编号}, true));
- this.column民族编号.AllowDBNull = false;
- this.column民族编号.Unique = true;
- }
- public 民族代码表Row New民族代码表Row() {
- return ((民族代码表Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 民族代码表Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(民族代码表Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.民族代码表RowChanged != null)) {
- this.民族代码表RowChanged(this, new 民族代码表RowChangeEvent(((民族代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.民族代码表RowChanging != null)) {
- this.民族代码表RowChanging(this, new 民族代码表RowChangeEvent(((民族代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.民族代码表RowDeleted != null)) {
- this.民族代码表RowDeleted(this, new 民族代码表RowChangeEvent(((民族代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.民族代码表RowDeleting != null)) {
- this.民族代码表RowDeleting(this, new 民族代码表RowChangeEvent(((民族代码表Row)(e.Row)), e.Action));
- }
- }
- public void Remove民族代码表Row(民族代码表Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 民族代码表Row : DataRow {
- private 民族代码表DataTable table民族代码表;
- internal 民族代码表Row(DataRowBuilder rb) :
- base(rb) {
- this.table民族代码表 = ((民族代码表DataTable)(this.Table));
- }
- public string 民族编号 {
- get {
- return ((string)(this[this.table民族代码表.民族编号Column]));
- }
- set {
- this[this.table民族代码表.民族编号Column] = value;
- }
- }
- public string 民族 {
- get {
- try {
- return ((string)(this[this.table民族代码表.民族Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table民族代码表.民族Column] = value;
- }
- }
- public bool Is民族Null() {
- return this.IsNull(this.table民族代码表.民族Column);
- }
- public void Set民族Null() {
- this[this.table民族代码表.民族Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 民族代码表RowChangeEvent : EventArgs {
- private 民族代码表Row eventRow;
- private DataRowAction eventAction;
- public 民族代码表RowChangeEvent(民族代码表Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 民族代码表Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 学籍代码表DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column学籍编号;
- private DataColumn column学籍名称;
- internal 学籍代码表DataTable() :
- base("学籍代码表") {
- this.InitClass();
- }
- internal 学籍代码表DataTable(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 学籍编号Column {
- get {
- return this.column学籍编号;
- }
- }
- internal DataColumn 学籍名称Column {
- get {
- return this.column学籍名称;
- }
- }
- public 学籍代码表Row this[int index] {
- get {
- return ((学籍代码表Row)(this.Rows[index]));
- }
- }
- public event 学籍代码表RowChangeEventHandler 学籍代码表RowChanged;
- public event 学籍代码表RowChangeEventHandler 学籍代码表RowChanging;
- public event 学籍代码表RowChangeEventHandler 学籍代码表RowDeleted;
- public event 学籍代码表RowChangeEventHandler 学籍代码表RowDeleting;
- public void Add学籍代码表Row(学籍代码表Row row) {
- this.Rows.Add(row);
- }
- public 学籍代码表Row Add学籍代码表Row(string 学籍编号, string 学籍名称) {
- 学籍代码表Row row学籍代码表Row = ((学籍代码表Row)(this.NewRow()));
- row学籍代码表Row.ItemArray = new object[] {
- 学籍编号,
- 学籍名称};
- this.Rows.Add(row学籍代码表Row);
- return row学籍代码表Row;
- }
- public 学籍代码表Row FindBy学籍编号(string 学籍编号) {
- return ((学籍代码表Row)(this.Rows.Find(new object[] {
- 学籍编号})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 学籍代码表DataTable cln = ((学籍代码表DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 学籍代码表DataTable();
- }
- internal void InitVars() {
- this.column学籍编号 = this.Columns["学籍编号"];
- this.column学籍名称 = this.Columns["学籍名称"];
- }
- private void InitClass() {
- this.column学籍编号 = new DataColumn("学籍编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column学籍编号);
- this.column学籍名称 = new DataColumn("学籍名称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column学籍名称);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column学籍编号}, true));
- this.column学籍编号.AllowDBNull = false;
- this.column学籍编号.Unique = true;
- }
- public 学籍代码表Row New学籍代码表Row() {
- return ((学籍代码表Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 学籍代码表Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(学籍代码表Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.学籍代码表RowChanged != null)) {
- this.学籍代码表RowChanged(this, new 学籍代码表RowChangeEvent(((学籍代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.学籍代码表RowChanging != null)) {
- this.学籍代码表RowChanging(this, new 学籍代码表RowChangeEvent(((学籍代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.学籍代码表RowDeleted != null)) {
- this.学籍代码表RowDeleted(this, new 学籍代码表RowChangeEvent(((学籍代码表Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.学籍代码表RowDeleting != null)) {
- this.学籍代码表RowDeleting(this, new 学籍代码表RowChangeEvent(((学籍代码表Row)(e.Row)), e.Action));
- }
- }
- public void Remove学籍代码表Row(学籍代码表Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 学籍代码表Row : DataRow {
- private 学籍代码表DataTable table学籍代码表;
- internal 学籍代码表Row(DataRowBuilder rb) :
- base(rb) {
- this.table学籍代码表 = ((学籍代码表DataTable)(this.Table));
- }
- public string 学籍编号 {
- get {
- return ((string)(this[this.table学籍代码表.学籍编号Column]));
- }
- set {
- this[this.table学籍代码表.学籍编号Column] = value;
- }
- }
- public string 学籍名称 {
- get {
- try {
- return ((string)(this[this.table学籍代码表.学籍名称Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table学籍代码表.学籍名称Column] = value;
- }
- }
- public bool Is学籍名称Null() {
- return this.IsNull(this.table学籍代码表.学籍名称Column);
- }
- public void Set学籍名称Null() {
- this[this.table学籍代码表.学籍名称Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 学籍代码表RowChangeEvent : EventArgs {
- private 学籍代码表Row eventRow;
- private DataRowAction eventAction;
- public 学籍代码表RowChangeEvent(学籍代码表Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 学籍代码表Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 班级信息DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column班级编号;
- private DataColumn column年级;
- private DataColumn column班级名称;
- private DataColumn column班级简称;
- private DataColumn column人数;
- private DataColumn column班主任;
- internal 班级信息DataTable() :
- base("班级信息") {
- this.InitClass();
- }
- internal 班级信息DataTable(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 班级编号Column {
- get {
- return this.column班级编号;
- }
- }
- internal DataColumn 年级Column {
- get {
- return this.column年级;
- }
- }
- internal DataColumn 班级名称Column {
- get {
- return this.column班级名称;
- }
- }
- internal DataColumn 班级简称Column {
- get {
- return this.column班级简称;
- }
- }
- internal DataColumn 人数Column {
- get {
- return this.column人数;
- }
- }
- internal DataColumn 班主任Column {
- get {
- return this.column班主任;
- }
- }
- public 班级信息Row this[int index] {
- get {
- return ((班级信息Row)(this.Rows[index]));
- }
- }
- public event 班级信息RowChangeEventHandler 班级信息RowChanged;
- public event 班级信息RowChangeEventHandler 班级信息RowChanging;
- public event 班级信息RowChangeEventHandler 班级信息RowDeleted;
- public event 班级信息RowChangeEventHandler 班级信息RowDeleting;
- public void Add班级信息Row(班级信息Row row) {
- this.Rows.Add(row);
- }
- public 班级信息Row Add班级信息Row(string 班级编号, string 年级, string 班级名称, string 班级简称, System.Decimal 人数, string 班主任) {
- 班级信息Row row班级信息Row = ((班级信息Row)(this.NewRow()));
- row班级信息Row.ItemArray = new object[] {
- 班级编号,
- 年级,
- 班级名称,
- 班级简称,
- 人数,
- 班主任};
- this.Rows.Add(row班级信息Row);
- return row班级信息Row;
- }
- public 班级信息Row FindBy班级编号(string 班级编号) {
- return ((班级信息Row)(this.Rows.Find(new object[] {
- 班级编号})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 班级信息DataTable cln = ((班级信息DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 班级信息DataTable();
- }
- internal void InitVars() {
- this.column班级编号 = this.Columns["班级编号"];
- this.column年级 = this.Columns["年级"];
- this.column班级名称 = this.Columns["班级名称"];
- this.column班级简称 = this.Columns["班级简称"];
- this.column人数 = this.Columns["人数"];
- this.column班主任 = this.Columns["班主任"];
- }
- private void InitClass() {
- this.column班级编号 = new DataColumn("班级编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column班级编号);
- this.column年级 = new DataColumn("年级", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column年级);
- this.column班级名称 = new DataColumn("班级名称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column班级名称);
- this.column班级简称 = new DataColumn("班级简称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column班级简称);
- this.column人数 = new DataColumn("人数", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column人数);
- this.column班主任 = new DataColumn("班主任", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column班主任);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column班级编号}, true));
- this.column班级编号.AllowDBNull = false;
- this.column班级编号.Unique = true;
- }
- public 班级信息Row New班级信息Row() {
- return ((班级信息Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 班级信息Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(班级信息Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.班级信息RowChanged != null)) {
- this.班级信息RowChanged(this, new 班级信息RowChangeEvent(((班级信息Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.班级信息RowChanging != null)) {
- this.班级信息RowChanging(this, new 班级信息RowChangeEvent(((班级信息Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.班级信息RowDeleted != null)) {
- this.班级信息RowDeleted(this, new 班级信息RowChangeEvent(((班级信息Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.班级信息RowDeleting != null)) {
- this.班级信息RowDeleting(this, new 班级信息RowChangeEvent(((班级信息Row)(e.Row)), e.Action));
- }
- }
- public void Remove班级信息Row(班级信息Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 班级信息Row : DataRow {
- private 班级信息DataTable table班级信息;
- internal 班级信息Row(DataRowBuilder rb) :
- base(rb) {
- this.table班级信息 = ((班级信息DataTable)(this.Table));
- }
- public string 班级编号 {
- get {
- return ((string)(this[this.table班级信息.班级编号Column]));
- }
- set {
- this[this.table班级信息.班级编号Column] = value;
- }
- }
- public string 年级 {
- get {
- try {
- return ((string)(this[this.table班级信息.年级Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table班级信息.年级Column] = value;
- }
- }
- public string 班级名称 {
- get {
- try {
- return ((string)(this[this.table班级信息.班级名称Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table班级信息.班级名称Column] = value;
- }
- }
- public string 班级简称 {
- get {
- try {
- return ((string)(this[this.table班级信息.班级简称Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table班级信息.班级简称Column] = value;
- }
- }
- public System.Decimal 人数 {
- get {
- try {
- return ((System.Decimal)(this[this.table班级信息.人数Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table班级信息.人数Column] = value;
- }
- }
- public string 班主任 {
- get {
- try {
- return ((string)(this[this.table班级信息.班主任Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table班级信息.班主任Column] = value;
- }
- }
- public bool Is年级Null() {
- return this.IsNull(this.table班级信息.年级Column);
- }
- public void Set年级Null() {
- this[this.table班级信息.年级Column] = System.Convert.DBNull;
- }
- public bool Is班级名称Null() {
- return this.IsNull(this.table班级信息.班级名称Column);
- }
- public void Set班级名称Null() {
- this[this.table班级信息.班级名称Column] = System.Convert.DBNull;
- }
- public bool Is班级简称Null() {
- return this.IsNull(this.table班级信息.班级简称Column);
- }
- public void Set班级简称Null() {
- this[this.table班级信息.班级简称Column] = System.Convert.DBNull;
- }
- public bool Is人数Null() {
- return this.IsNull(this.table班级信息.人数Column);
- }
- public void Set人数Null() {
- this[this.table班级信息.人数Column] = System.Convert.DBNull;
- }
- public bool Is班主任Null() {
- return this.IsNull(this.table班级信息.班主任Column);
- }
- public void Set班主任Null() {
- this[this.table班级信息.班主任Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 班级信息RowChangeEvent : EventArgs {
- private 班级信息Row eventRow;
- private DataRowAction eventAction;
- public 班级信息RowChangeEvent(班级信息Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 班级信息Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 学生信息DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column学号;
- private DataColumn column姓名;
- private DataColumn column班级编号;
- private DataColumn column性别;
- private DataColumn column年级;
- private DataColumn column政治面貌编号;
- private DataColumn column民族编号;
- private DataColumn column籍贯编号;
- private DataColumn column身份证号;
- private DataColumn column学籍编号;
- internal 学生信息DataTable() :
- base("学生信息") {
- this.InitClass();
- }
- internal 学生信息DataTable(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 学号Column {
- get {
- return this.column学号;
- }
- }
- internal DataColumn 姓名Column {
- get {
- return this.column姓名;
- }
- }
- internal DataColumn 班级编号Column {
- get {
- return this.column班级编号;
- }
- }
- internal DataColumn 性别Column {
- get {
- return this.column性别;
- }
- }
- internal DataColumn 年级Column {
- get {
- return this.column年级;
- }
- }
- internal DataColumn 政治面貌编号Column {
- get {
- return this.column政治面貌编号;
- }
- }
- internal DataColumn 民族编号Column {
- get {
- return this.column民族编号;
- }
- }
- internal DataColumn 籍贯编号Column {
- get {
- return this.column籍贯编号;
- }
- }
- internal DataColumn 身份证号Column {
- get {
- return this.column身份证号;
- }
- }
- internal DataColumn 学籍编号Column {
- get {
- return this.column学籍编号;
- }
- }
- public 学生信息Row this[int index] {
- get {
- return ((学生信息Row)(this.Rows[index]));
- }
- }
- public event 学生信息RowChangeEventHandler 学生信息RowChanged;
- public event 学生信息RowChangeEventHandler 学生信息RowChanging;
- public event 学生信息RowChangeEventHandler 学生信息RowDeleted;
- public event 学生信息RowChangeEventHandler 学生信息RowDeleting;
- public void Add学生信息Row(学生信息Row row) {
- this.Rows.Add(row);
- }
- public 学生信息Row Add学生信息Row(string 学号, string 姓名, string 班级编号, string 性别, int 年级, string 政治面貌编号, string 民族编号, string 籍贯编号, string 身份证号, string 学籍编号) {
- 学生信息Row row学生信息Row = ((学生信息Row)(this.NewRow()));
- row学生信息Row.ItemArray = new object[] {
- 学号,
- 姓名,
- 班级编号,
- 性别,
- 年级,
- 政治面貌编号,
- 民族编号,
- 籍贯编号,
- 身份证号,
- 学籍编号};
- this.Rows.Add(row学生信息Row);
- return row学生信息Row;
- }
- public 学生信息Row FindBy学号(string 学号) {
- return ((学生信息Row)(this.Rows.Find(new object[] {
- 学号})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 学生信息DataTable cln = ((学生信息DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 学生信息DataTable();
- }
- internal void InitVars() {
- this.column学号 = this.Columns["学号"];
- this.column姓名 = this.Columns["姓名"];
- this.column班级编号 = this.Columns["班级编号"];
- this.column性别 = this.Columns["性别"];
- this.column年级 = this.Columns["年级"];
- this.column政治面貌编号 = this.Columns["政治面貌编号"];
- this.column民族编号 = this.Columns["民族编号"];
- this.column籍贯编号 = this.Columns["籍贯编号"];
- this.column身份证号 = this.Columns["身份证号"];
- this.column学籍编号 = this.Columns["学籍编号"];
- }
- private void InitClass() {
- this.column学号 = new DataColumn("学号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column学号);
- this.column姓名 = new DataColumn("姓名", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column姓名);
- this.column班级编号 = new DataColumn("班级编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column班级编号);
- this.column性别 = new DataColumn("性别", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column性别);
- this.column年级 = new DataColumn("年级", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column年级);
- this.column政治面貌编号 = new DataColumn("政治面貌编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column政治面貌编号);
- this.column民族编号 = new DataColumn("民族编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column民族编号);
- this.column籍贯编号 = new DataColumn("籍贯编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column籍贯编号);
- this.column身份证号 = new DataColumn("身份证号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column身份证号);
- this.column学籍编号 = new DataColumn("学籍编号", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column学籍编号);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column学号}, true));
- this.column学号.AllowDBNull = false;
- this.column学号.Unique = true;
- this.column民族编号.AllowDBNull = false;
- this.column籍贯编号.AllowDBNull = false;
- this.column学籍编号.AllowDBNull = false;
- }
- public 学生信息Row New学生信息Row() {
- return ((学生信息Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 学生信息Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(学生信息Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.学生信息RowChanged != null)) {
- this.学生信息RowChanged(this, new 学生信息RowChangeEvent(((学生信息Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.学生信息RowChanging != null)) {
- this.学生信息RowChanging(this, new 学生信息RowChangeEvent(((学生信息Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.学生信息RowDeleted != null)) {
- this.学生信息RowDeleted(this, new 学生信息RowChangeEvent(((学生信息Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.学生信息RowDeleting != null)) {
- this.学生信息RowDeleting(this, new 学生信息RowChangeEvent(((学生信息Row)(e.Row)), e.Action));
- }
- }
- public void Remove学生信息Row(学生信息Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 学生信息Row : DataRow {
- private 学生信息DataTable table学生信息;
- internal 学生信息Row(DataRowBuilder rb) :
- base(rb) {
- this.table学生信息 = ((学生信息DataTable)(this.Table));
- }
- public string 学号 {
- get {
- return ((string)(this[this.table学生信息.学号Column]));
- }
- set {
- this[this.table学生信息.学号Column] = value;
- }
- }
- public string 姓名 {
- get {
- try {
- return ((string)(this[this.table学生信息.姓名Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table学生信息.姓名Column] = value;
- }
- }
- public string 班级编号 {
- get {
- try {
- return ((string)(this[this.table学生信息.班级编号Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table学生信息.班级编号Column] = value;
- }
- }
- public string 性别 {
- get {
- try {
- return ((string)(this[this.table学生信息.性别Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table学生信息.性别Column] = value;
- }
- }
- public int 年级 {
- get {
- try {
- return ((int)(this[this.table学生信息.年级Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table学生信息.年级Column] = value;
- }
- }
- public string 政治面貌编号 {
- get {
- try {
- return ((string)(this[this.table学生信息.政治面貌编号Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table学生信息.政治面貌编号Column] = value;
- }
- }
- public string 民族编号 {
- get {
- return ((string)(this[this.table学生信息.民族编号Column]));
- }
- set {
- this[this.table学生信息.民族编号Column] = value;
- }
- }
- public string 籍贯编号 {
- get {
- return ((string)(this[this.table学生信息.籍贯编号Column]));
- }
- set {
- this[this.table学生信息.籍贯编号Column] = value;
- }
- }
- public string 身份证号 {
- get {
- try {
- return ((string)(this[this.table学生信息.身份证号Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table学生信息.身份证号Column] = value;
- }
- }
- public string 学籍编号 {
- get {
- return ((string)(this[this.table学生信息.学籍编号Column]));
- }
- set {
- this[this.table学生信息.学籍编号Column] = value;
- }
- }
- public bool Is姓名Null() {
- return this.IsNull(this.table学生信息.姓名Column);
- }
- public void Set姓名Null() {
- this[this.table学生信息.姓名Column] = System.Convert.DBNull;
- }
- public bool Is班级编号Null() {
- return this.IsNull(this.table学生信息.班级编号Column);
- }
- public void Set班级编号Null() {
- this[this.table学生信息.班级编号Column] = System.Convert.DBNull;
- }
- public bool Is性别Null() {
- return this.IsNull(this.table学生信息.性别Column);
- }
- public void Set性别Null() {
- this[this.table学生信息.性别Column] = System.Convert.DBNull;
- }
- public bool Is年级Null() {
- return this.IsNull(this.table学生信息.年级Column);
- }
- public void Set年级Null() {
- this[this.table学生信息.年级Column] = System.Convert.DBNull;
- }
- public bool Is政治面貌编号Null() {
- return this.IsNull(this.table学生信息.政治面貌编号Column);
- }
- public void Set政治面貌编号Null() {
- this[this.table学生信息.政治面貌编号Column] = System.Convert.DBNull;
- }
- public bool Is身份证号Null() {
- return this.IsNull(this.table学生信息.身份证号Column);
- }
- public void Set身份证号Null() {
- this[this.table学生信息.身份证号Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 学生信息RowChangeEvent : EventArgs {
- private 学生信息Row eventRow;
- private DataRowAction eventAction;
- public 学生信息RowChangeEvent(学生信息Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 学生信息Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 课程信息DataTable : DataTable, System.Collections.IEnumerable {
- private DataColumn column课程编号;
- private DataColumn column课程名称;
- private DataColumn column课程简称;
- private DataColumn column拼音码;
- private DataColumn column本学期课程;
- private DataColumn column教师;
- private DataColumn column开课系别;
- private DataColumn column学分;
- internal 课程信息DataTable() :
- base("课程信息") {
- this.InitClass();
- }
- internal 课程信息DataTable(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 课程编号Column {
- get {
- return this.column课程编号;
- }
- }
- internal DataColumn 课程名称Column {
- get {
- return this.column课程名称;
- }
- }
- internal DataColumn 课程简称Column {
- get {
- return this.column课程简称;
- }
- }
- internal DataColumn 拼音码Column {
- get {
- return this.column拼音码;
- }
- }
- internal DataColumn 本学期课程Column {
- get {
- return this.column本学期课程;
- }
- }
- internal DataColumn 教师Column {
- get {
- return this.column教师;
- }
- }
- internal DataColumn 开课系别Column {
- get {
- return this.column开课系别;
- }
- }
- internal DataColumn 学分Column {
- get {
- return this.column学分;
- }
- }
- public 课程信息Row this[int index] {
- get {
- return ((课程信息Row)(this.Rows[index]));
- }
- }
- public event 课程信息RowChangeEventHandler 课程信息RowChanged;
- public event 课程信息RowChangeEventHandler 课程信息RowChanging;
- public event 课程信息RowChangeEventHandler 课程信息RowDeleted;
- public event 课程信息RowChangeEventHandler 课程信息RowDeleting;
- public void Add课程信息Row(课程信息Row row) {
- this.Rows.Add(row);
- }
- public 课程信息Row Add课程信息Row(int 课程编号, string 课程名称, string 课程简称, string 拼音码, string 本学期课程, string 教师, string 开课系别, int 学分) {
- 课程信息Row row课程信息Row = ((课程信息Row)(this.NewRow()));
- row课程信息Row.ItemArray = new object[] {
- 课程编号,
- 课程名称,
- 课程简称,
- 拼音码,
- 本学期课程,
- 教师,
- 开课系别,
- 学分};
- this.Rows.Add(row课程信息Row);
- return row课程信息Row;
- }
- public 课程信息Row FindBy课程编号(int 课程编号) {
- return ((课程信息Row)(this.Rows.Find(new object[] {
- 课程编号})));
- }
- public System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- public override DataTable Clone() {
- 课程信息DataTable cln = ((课程信息DataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- protected override DataTable CreateInstance() {
- return new 课程信息DataTable();
- }
- internal void InitVars() {
- this.column课程编号 = this.Columns["课程编号"];
- this.column课程名称 = this.Columns["课程名称"];
- this.column课程简称 = this.Columns["课程简称"];
- this.column拼音码 = this.Columns["拼音码"];
- this.column本学期课程 = this.Columns["本学期课程"];
- this.column教师 = this.Columns["教师"];
- this.column开课系别 = this.Columns["开课系别"];
- this.column学分 = this.Columns["学分"];
- }
- private void InitClass() {
- this.column课程编号 = new DataColumn("课程编号", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column课程编号);
- this.column课程名称 = new DataColumn("课程名称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column课程名称);
- this.column课程简称 = new DataColumn("课程简称", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column课程简称);
- this.column拼音码 = new DataColumn("拼音码", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column拼音码);
- this.column本学期课程 = new DataColumn("本学期课程", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column本学期课程);
- this.column教师 = new DataColumn("教师", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column教师);
- this.column开课系别 = new DataColumn("开课系别", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column开课系别);
- this.column学分 = new DataColumn("学分", typeof(int), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column学分);
- this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
- this.column课程编号}, true));
- this.column课程编号.AllowDBNull = false;
- this.column课程编号.Unique = true;
- this.column课程名称.AllowDBNull = false;
- this.column课程简称.AllowDBNull = false;
- this.column本学期课程.AllowDBNull = false;
- }
- public 课程信息Row New课程信息Row() {
- return ((课程信息Row)(this.NewRow()));
- }
- protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
- return new 课程信息Row(builder);
- }
- protected override System.Type GetRowType() {
- return typeof(课程信息Row);
- }
- protected override void OnRowChanged(DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.课程信息RowChanged != null)) {
- this.课程信息RowChanged(this, new 课程信息RowChangeEvent(((课程信息Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowChanging(DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.课程信息RowChanging != null)) {
- this.课程信息RowChanging(this, new 课程信息RowChangeEvent(((课程信息Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleted(DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.课程信息RowDeleted != null)) {
- this.课程信息RowDeleted(this, new 课程信息RowChangeEvent(((课程信息Row)(e.Row)), e.Action));
- }
- }
- protected override void OnRowDeleting(DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.课程信息RowDeleting != null)) {
- this.课程信息RowDeleting(this, new 课程信息RowChangeEvent(((课程信息Row)(e.Row)), e.Action));
- }
- }
- public void Remove课程信息Row(课程信息Row row) {
- this.Rows.Remove(row);
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 课程信息Row : DataRow {
- private 课程信息DataTable table课程信息;
- internal 课程信息Row(DataRowBuilder rb) :
- base(rb) {
- this.table课程信息 = ((课程信息DataTable)(this.Table));
- }
- public int 课程编号 {
- get {
- return ((int)(this[this.table课程信息.课程编号Column]));
- }
- set {
- this[this.table课程信息.课程编号Column] = value;
- }
- }
- public string 课程名称 {
- get {
- return ((string)(this[this.table课程信息.课程名称Column]));
- }
- set {
- this[this.table课程信息.课程名称Column] = value;
- }
- }
- public string 课程简称 {
- get {
- return ((string)(this[this.table课程信息.课程简称Column]));
- }
- set {
- this[this.table课程信息.课程简称Column] = value;
- }
- }
- public string 拼音码 {
- get {
- try {
- return ((string)(this[this.table课程信息.拼音码Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table课程信息.拼音码Column] = value;
- }
- }
- public string 本学期课程 {
- get {
- return ((string)(this[this.table课程信息.本学期课程Column]));
- }
- set {
- this[this.table课程信息.本学期课程Column] = value;
- }
- }
- public string 教师 {
- get {
- try {
- return ((string)(this[this.table课程信息.教师Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table课程信息.教师Column] = value;
- }
- }
- public string 开课系别 {
- get {
- try {
- return ((string)(this[this.table课程信息.开课系别Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table课程信息.开课系别Column] = value;
- }
- }
- public int 学分 {
- get {
- try {
- return ((int)(this[this.table课程信息.学分Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table课程信息.学分Column] = value;
- }
- }
- public bool Is拼音码Null() {
- return this.IsNull(this.table课程信息.拼音码Column);
- }
- public void Set拼音码Null() {
- this[this.table课程信息.拼音码Column] = System.Convert.DBNull;
- }
- public bool Is教师Null() {
- return this.IsNull(this.table课程信息.教师Column);
- }
- public void Set教师Null() {
- this[this.table课程信息.教师Column] = System.Convert.DBNull;
- }
- public bool Is开课系别Null() {
- return this.IsNull(this.table课程信息.开课系别Column);
- }
- public void Set开课系别Null() {
- this[this.table课程信息.开课系别Column] = System.Convert.DBNull;
- }
- public bool Is学分Null() {
- return this.IsNull(this.table课程信息.学分Column);
- }
- public void Set学分Null() {
- this[this.table课程信息.学分Column] = System.Convert.DBNull;
- }
- }
- [System.Diagnostics.DebuggerStepThrough()]
- public class 课程信息RowChangeEvent : EventArgs {
- private 课程信息Row eventRow;
- private DataRowAction eventAction;
- public 课程信息RowChangeEvent(课程信息Row row, DataRowAction action) {
- this.eventRow = row;
- this.eventAction = action;
- }
- public 课程信息Row Row {
- get {
- return this.eventRow;
- }
- }
- public DataRowAction Action {
- get {
- return this.eventAction;
- }
- }
- }
- }
- }