DataSet2.cs
上传用户:hjieqiu
上传日期:2013-05-11
资源大小:16494k
文件大小:24k
源码类别:

企业管理

开发平台:

C#

  1. //------------------------------------------------------------------------------
  2. // <autogenerated>
  3. //     This code was generated by a tool.
  4. //     Runtime Version: 1.1.4322.573
  5. //
  6. //     Changes to this file may cause incorrect behavior and will be lost if 
  7. //     the code is regenerated.
  8. // </autogenerated>
  9. //------------------------------------------------------------------------------
  10. namespace 教务管理系统 {
  11.     using System;
  12.     using System.Data;
  13.     using System.Xml;
  14.     using System.Runtime.Serialization;
  15.     
  16.     
  17.     [Serializable()]
  18.     [System.ComponentModel.DesignerCategoryAttribute("code")]
  19.     [System.Diagnostics.DebuggerStepThrough()]
  20.     [System.ComponentModel.ToolboxItem(true)]
  21.     public class DataSet2 : DataSet {
  22.         
  23.         private 班级信息DataTable table班级信息;
  24.         
  25.         public DataSet2() {
  26.             this.InitClass();
  27.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  28.             this.Tables.CollectionChanged += schemaChangedHandler;
  29.             this.Relations.CollectionChanged += schemaChangedHandler;
  30.         }
  31.         
  32.         protected DataSet2(SerializationInfo info, StreamingContext context) {
  33.             string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  34.             if ((strSchema != null)) {
  35.                 DataSet ds = new DataSet();
  36.                 ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
  37.                 if ((ds.Tables["班级信息"] != null)) {
  38.                     this.Tables.Add(new 班级信息DataTable(ds.Tables["班级信息"]));
  39.                 }
  40.                 this.DataSetName = ds.DataSetName;
  41.                 this.Prefix = ds.Prefix;
  42.                 this.Namespace = ds.Namespace;
  43.                 this.Locale = ds.Locale;
  44.                 this.CaseSensitive = ds.CaseSensitive;
  45.                 this.EnforceConstraints = ds.EnforceConstraints;
  46.                 this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  47.                 this.InitVars();
  48.             }
  49.             else {
  50.                 this.InitClass();
  51.             }
  52.             this.GetSerializationData(info, context);
  53.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  54.             this.Tables.CollectionChanged += schemaChangedHandler;
  55.             this.Relations.CollectionChanged += schemaChangedHandler;
  56.         }
  57.         
  58.         [System.ComponentModel.Browsable(false)]
  59.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  60.         public 班级信息DataTable 班级信息 {
  61.             get {
  62.                 return this.table班级信息;
  63.             }
  64.         }
  65.         
  66.         public override DataSet Clone() {
  67.             DataSet2 cln = ((DataSet2)(base.Clone()));
  68.             cln.InitVars();
  69.             return cln;
  70.         }
  71.         
  72.         protected override bool ShouldSerializeTables() {
  73.             return false;
  74.         }
  75.         
  76.         protected override bool ShouldSerializeRelations() {
  77.             return false;
  78.         }
  79.         
  80.         protected override void ReadXmlSerializable(XmlReader reader) {
  81.             this.Reset();
  82.             DataSet ds = new DataSet();
  83.             ds.ReadXml(reader);
  84.             if ((ds.Tables["班级信息"] != null)) {
  85.                 this.Tables.Add(new 班级信息DataTable(ds.Tables["班级信息"]));
  86.             }
  87.             this.DataSetName = ds.DataSetName;
  88.             this.Prefix = ds.Prefix;
  89.             this.Namespace = ds.Namespace;
  90.             this.Locale = ds.Locale;
  91.             this.CaseSensitive = ds.CaseSensitive;
  92.             this.EnforceConstraints = ds.EnforceConstraints;
  93.             this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  94.             this.InitVars();
  95.         }
  96.         
  97.         protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  98.             System.IO.MemoryStream stream = new System.IO.MemoryStream();
  99.             this.WriteXmlSchema(new XmlTextWriter(stream, null));
  100.             stream.Position = 0;
  101.             return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
  102.         }
  103.         
  104.         internal void InitVars() {
  105.             this.table班级信息 = ((班级信息DataTable)(this.Tables["班级信息"]));
  106.             if ((this.table班级信息 != null)) {
  107.                 this.table班级信息.InitVars();
  108.             }
  109.         }
  110.         
  111.         private void InitClass() {
  112.             this.DataSetName = "DataSet2";
  113.             this.Prefix = "";
  114.             this.Namespace = "http://www.tempuri.org/DataSet2.xsd";
  115.             this.Locale = new System.Globalization.CultureInfo("zh-CN");
  116.             this.CaseSensitive = false;
  117.             this.EnforceConstraints = true;
  118.             this.table班级信息 = new 班级信息DataTable();
  119.             this.Tables.Add(this.table班级信息);
  120.         }
  121.         
  122.         private bool ShouldSerialize班级信息() {
  123.             return false;
  124.         }
  125.         
  126.         private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
  127.             if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
  128.                 this.InitVars();
  129.             }
  130.         }
  131.         
  132.         public delegate void 班级信息RowChangeEventHandler(object sender, 班级信息RowChangeEvent e);
  133.         
  134.         [System.Diagnostics.DebuggerStepThrough()]
  135.         public class 班级信息DataTable : DataTable, System.Collections.IEnumerable {
  136.             
  137.             private DataColumn column班级编号;
  138.             
  139.             private DataColumn column班级名称;
  140.             
  141.             private DataColumn column籍贯编号;
  142.             
  143.             private DataColumn column籍贯;
  144.             
  145.             private DataColumn column民族编号;
  146.             
  147.             private DataColumn column民族;
  148.             
  149.             private DataColumn column学籍编号;
  150.             
  151.             private DataColumn column学籍名称;
  152.             
  153.             private DataColumn column政治面貌编号;
  154.             
  155.             private DataColumn column政治面貌;
  156.             
  157.             internal 班级信息DataTable() : 
  158.                     base("班级信息") {
  159.                 this.InitClass();
  160.             }
  161.             
  162.             internal 班级信息DataTable(DataTable table) : 
  163.                     base(table.TableName) {
  164.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  165.                     this.CaseSensitive = table.CaseSensitive;
  166.                 }
  167.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  168.                     this.Locale = table.Locale;
  169.                 }
  170.                 if ((table.Namespace != table.DataSet.Namespace)) {
  171.                     this.Namespace = table.Namespace;
  172.                 }
  173.                 this.Prefix = table.Prefix;
  174.                 this.MinimumCapacity = table.MinimumCapacity;
  175.                 this.DisplayExpression = table.DisplayExpression;
  176.             }
  177.             
  178.             [System.ComponentModel.Browsable(false)]
  179.             public int Count {
  180.                 get {
  181.                     return this.Rows.Count;
  182.                 }
  183.             }
  184.             
  185.             internal DataColumn 班级编号Column {
  186.                 get {
  187.                     return this.column班级编号;
  188.                 }
  189.             }
  190.             
  191.             internal DataColumn 班级名称Column {
  192.                 get {
  193.                     return this.column班级名称;
  194.                 }
  195.             }
  196.             
  197.             internal DataColumn 籍贯编号Column {
  198.                 get {
  199.                     return this.column籍贯编号;
  200.                 }
  201.             }
  202.             
  203.             internal DataColumn 籍贯Column {
  204.                 get {
  205.                     return this.column籍贯;
  206.                 }
  207.             }
  208.             
  209.             internal DataColumn 民族编号Column {
  210.                 get {
  211.                     return this.column民族编号;
  212.                 }
  213.             }
  214.             
  215.             internal DataColumn 民族Column {
  216.                 get {
  217.                     return this.column民族;
  218.                 }
  219.             }
  220.             
  221.             internal DataColumn 学籍编号Column {
  222.                 get {
  223.                     return this.column学籍编号;
  224.                 }
  225.             }
  226.             
  227.             internal DataColumn 学籍名称Column {
  228.                 get {
  229.                     return this.column学籍名称;
  230.                 }
  231.             }
  232.             
  233.             internal DataColumn 政治面貌编号Column {
  234.                 get {
  235.                     return this.column政治面貌编号;
  236.                 }
  237.             }
  238.             
  239.             internal DataColumn 政治面貌Column {
  240.                 get {
  241.                     return this.column政治面貌;
  242.                 }
  243.             }
  244.             
  245.             public 班级信息Row this[int index] {
  246.                 get {
  247.                     return ((班级信息Row)(this.Rows[index]));
  248.                 }
  249.             }
  250.             
  251.             public event 班级信息RowChangeEventHandler 班级信息RowChanged;
  252.             
  253.             public event 班级信息RowChangeEventHandler 班级信息RowChanging;
  254.             
  255.             public event 班级信息RowChangeEventHandler 班级信息RowDeleted;
  256.             
  257.             public event 班级信息RowChangeEventHandler 班级信息RowDeleting;
  258.             
  259.             public void Add班级信息Row(班级信息Row row) {
  260.                 this.Rows.Add(row);
  261.             }
  262.             
  263.             public 班级信息Row Add班级信息Row(string 班级编号, string 班级名称, string 籍贯编号, string 籍贯, string 民族编号, string 民族, string 学籍编号, string 学籍名称, string 政治面貌编号, string 政治面貌) {
  264.                 班级信息Row row班级信息Row = ((班级信息Row)(this.NewRow()));
  265.                 row班级信息Row.ItemArray = new object[] {
  266.                         班级编号,
  267.                         班级名称,
  268.                         籍贯编号,
  269.                         籍贯,
  270.                         民族编号,
  271.                         民族,
  272.                         学籍编号,
  273.                         学籍名称,
  274.                         政治面貌编号,
  275.                         政治面貌};
  276.                 this.Rows.Add(row班级信息Row);
  277.                 return row班级信息Row;
  278.             }
  279.             
  280.             public 班级信息Row FindBy班级编号籍贯编号民族编号学籍编号政治面貌编号(string 班级编号, string 籍贯编号, string 民族编号, string 学籍编号, string 政治面貌编号) {
  281.                 return ((班级信息Row)(this.Rows.Find(new object[] {
  282.                             班级编号,
  283.                             籍贯编号,
  284.                             民族编号,
  285.                             学籍编号,
  286.                             政治面貌编号})));
  287.             }
  288.             
  289.             public System.Collections.IEnumerator GetEnumerator() {
  290.                 return this.Rows.GetEnumerator();
  291.             }
  292.             
  293.             public override DataTable Clone() {
  294.                 班级信息DataTable cln = ((班级信息DataTable)(base.Clone()));
  295.                 cln.InitVars();
  296.                 return cln;
  297.             }
  298.             
  299.             protected override DataTable CreateInstance() {
  300.                 return new 班级信息DataTable();
  301.             }
  302.             
  303.             internal void InitVars() {
  304.                 this.column班级编号 = this.Columns["班级编号"];
  305.                 this.column班级名称 = this.Columns["班级名称"];
  306.                 this.column籍贯编号 = this.Columns["籍贯编号"];
  307.                 this.column籍贯 = this.Columns["籍贯"];
  308.                 this.column民族编号 = this.Columns["民族编号"];
  309.                 this.column民族 = this.Columns["民族"];
  310.                 this.column学籍编号 = this.Columns["学籍编号"];
  311.                 this.column学籍名称 = this.Columns["学籍名称"];
  312.                 this.column政治面貌编号 = this.Columns["政治面貌编号"];
  313.                 this.column政治面貌 = this.Columns["政治面貌"];
  314.             }
  315.             
  316.             private void InitClass() {
  317.                 this.column班级编号 = new DataColumn("班级编号", typeof(string), null, System.Data.MappingType.Element);
  318.                 this.Columns.Add(this.column班级编号);
  319.                 this.column班级名称 = new DataColumn("班级名称", typeof(string), null, System.Data.MappingType.Element);
  320.                 this.Columns.Add(this.column班级名称);
  321.                 this.column籍贯编号 = new DataColumn("籍贯编号", typeof(string), null, System.Data.MappingType.Element);
  322.                 this.Columns.Add(this.column籍贯编号);
  323.                 this.column籍贯 = new DataColumn("籍贯", typeof(string), null, System.Data.MappingType.Element);
  324.                 this.Columns.Add(this.column籍贯);
  325.                 this.column民族编号 = new DataColumn("民族编号", typeof(string), null, System.Data.MappingType.Element);
  326.                 this.Columns.Add(this.column民族编号);
  327.                 this.column民族 = new DataColumn("民族", typeof(string), null, System.Data.MappingType.Element);
  328.                 this.Columns.Add(this.column民族);
  329.                 this.column学籍编号 = new DataColumn("学籍编号", typeof(string), null, System.Data.MappingType.Element);
  330.                 this.Columns.Add(this.column学籍编号);
  331.                 this.column学籍名称 = new DataColumn("学籍名称", typeof(string), null, System.Data.MappingType.Element);
  332.                 this.Columns.Add(this.column学籍名称);
  333.                 this.column政治面貌编号 = new DataColumn("政治面貌编号", typeof(string), null, System.Data.MappingType.Element);
  334.                 this.Columns.Add(this.column政治面貌编号);
  335.                 this.column政治面貌 = new DataColumn("政治面貌", typeof(string), null, System.Data.MappingType.Element);
  336.                 this.Columns.Add(this.column政治面貌);
  337.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  338.                                 this.column班级编号,
  339.                                 this.column籍贯编号,
  340.                                 this.column民族编号,
  341.                                 this.column学籍编号,
  342.                                 this.column政治面貌编号}, true));
  343.                 this.column班级编号.AllowDBNull = false;
  344.                 this.column籍贯编号.AllowDBNull = false;
  345.                 this.column民族编号.AllowDBNull = false;
  346.                 this.column学籍编号.AllowDBNull = false;
  347.                 this.column政治面貌编号.AllowDBNull = false;
  348.             }
  349.             
  350.             public 班级信息Row New班级信息Row() {
  351.                 return ((班级信息Row)(this.NewRow()));
  352.             }
  353.             
  354.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  355.                 return new 班级信息Row(builder);
  356.             }
  357.             
  358.             protected override System.Type GetRowType() {
  359.                 return typeof(班级信息Row);
  360.             }
  361.             
  362.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  363.                 base.OnRowChanged(e);
  364.                 if ((this.班级信息RowChanged != null)) {
  365.                     this.班级信息RowChanged(this, new 班级信息RowChangeEvent(((班级信息Row)(e.Row)), e.Action));
  366.                 }
  367.             }
  368.             
  369.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  370.                 base.OnRowChanging(e);
  371.                 if ((this.班级信息RowChanging != null)) {
  372.                     this.班级信息RowChanging(this, new 班级信息RowChangeEvent(((班级信息Row)(e.Row)), e.Action));
  373.                 }
  374.             }
  375.             
  376.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  377.                 base.OnRowDeleted(e);
  378.                 if ((this.班级信息RowDeleted != null)) {
  379.                     this.班级信息RowDeleted(this, new 班级信息RowChangeEvent(((班级信息Row)(e.Row)), e.Action));
  380.                 }
  381.             }
  382.             
  383.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  384.                 base.OnRowDeleting(e);
  385.                 if ((this.班级信息RowDeleting != null)) {
  386.                     this.班级信息RowDeleting(this, new 班级信息RowChangeEvent(((班级信息Row)(e.Row)), e.Action));
  387.                 }
  388.             }
  389.             
  390.             public void Remove班级信息Row(班级信息Row row) {
  391.                 this.Rows.Remove(row);
  392.             }
  393.         }
  394.         
  395.         [System.Diagnostics.DebuggerStepThrough()]
  396.         public class 班级信息Row : DataRow {
  397.             
  398.             private 班级信息DataTable table班级信息;
  399.             
  400.             internal 班级信息Row(DataRowBuilder rb) : 
  401.                     base(rb) {
  402.                 this.table班级信息 = ((班级信息DataTable)(this.Table));
  403.             }
  404.             
  405.             public string 班级编号 {
  406.                 get {
  407.                     return ((string)(this[this.table班级信息.班级编号Column]));
  408.                 }
  409.                 set {
  410.                     this[this.table班级信息.班级编号Column] = value;
  411.                 }
  412.             }
  413.             
  414.             public string 班级名称 {
  415.                 get {
  416.                     try {
  417.                         return ((string)(this[this.table班级信息.班级名称Column]));
  418.                     }
  419.                     catch (InvalidCastException e) {
  420.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  421.                     }
  422.                 }
  423.                 set {
  424.                     this[this.table班级信息.班级名称Column] = value;
  425.                 }
  426.             }
  427.             
  428.             public string 籍贯编号 {
  429.                 get {
  430.                     return ((string)(this[this.table班级信息.籍贯编号Column]));
  431.                 }
  432.                 set {
  433.                     this[this.table班级信息.籍贯编号Column] = value;
  434.                 }
  435.             }
  436.             
  437.             public string 籍贯 {
  438.                 get {
  439.                     try {
  440.                         return ((string)(this[this.table班级信息.籍贯Column]));
  441.                     }
  442.                     catch (InvalidCastException e) {
  443.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  444.                     }
  445.                 }
  446.                 set {
  447.                     this[this.table班级信息.籍贯Column] = value;
  448.                 }
  449.             }
  450.             
  451.             public string 民族编号 {
  452.                 get {
  453.                     return ((string)(this[this.table班级信息.民族编号Column]));
  454.                 }
  455.                 set {
  456.                     this[this.table班级信息.民族编号Column] = value;
  457.                 }
  458.             }
  459.             
  460.             public string 民族 {
  461.                 get {
  462.                     try {
  463.                         return ((string)(this[this.table班级信息.民族Column]));
  464.                     }
  465.                     catch (InvalidCastException e) {
  466.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  467.                     }
  468.                 }
  469.                 set {
  470.                     this[this.table班级信息.民族Column] = value;
  471.                 }
  472.             }
  473.             
  474.             public string 学籍编号 {
  475.                 get {
  476.                     return ((string)(this[this.table班级信息.学籍编号Column]));
  477.                 }
  478.                 set {
  479.                     this[this.table班级信息.学籍编号Column] = value;
  480.                 }
  481.             }
  482.             
  483.             public string 学籍名称 {
  484.                 get {
  485.                     try {
  486.                         return ((string)(this[this.table班级信息.学籍名称Column]));
  487.                     }
  488.                     catch (InvalidCastException e) {
  489.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  490.                     }
  491.                 }
  492.                 set {
  493.                     this[this.table班级信息.学籍名称Column] = value;
  494.                 }
  495.             }
  496.             
  497.             public string 政治面貌编号 {
  498.                 get {
  499.                     return ((string)(this[this.table班级信息.政治面貌编号Column]));
  500.                 }
  501.                 set {
  502.                     this[this.table班级信息.政治面貌编号Column] = value;
  503.                 }
  504.             }
  505.             
  506.             public string 政治面貌 {
  507.                 get {
  508.                     try {
  509.                         return ((string)(this[this.table班级信息.政治面貌Column]));
  510.                     }
  511.                     catch (InvalidCastException e) {
  512.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  513.                     }
  514.                 }
  515.                 set {
  516.                     this[this.table班级信息.政治面貌Column] = value;
  517.                 }
  518.             }
  519.             
  520.             public bool Is班级名称Null() {
  521.                 return this.IsNull(this.table班级信息.班级名称Column);
  522.             }
  523.             
  524.             public void Set班级名称Null() {
  525.                 this[this.table班级信息.班级名称Column] = System.Convert.DBNull;
  526.             }
  527.             
  528.             public bool Is籍贯Null() {
  529.                 return this.IsNull(this.table班级信息.籍贯Column);
  530.             }
  531.             
  532.             public void Set籍贯Null() {
  533.                 this[this.table班级信息.籍贯Column] = System.Convert.DBNull;
  534.             }
  535.             
  536.             public bool Is民族Null() {
  537.                 return this.IsNull(this.table班级信息.民族Column);
  538.             }
  539.             
  540.             public void Set民族Null() {
  541.                 this[this.table班级信息.民族Column] = System.Convert.DBNull;
  542.             }
  543.             
  544.             public bool Is学籍名称Null() {
  545.                 return this.IsNull(this.table班级信息.学籍名称Column);
  546.             }
  547.             
  548.             public void Set学籍名称Null() {
  549.                 this[this.table班级信息.学籍名称Column] = System.Convert.DBNull;
  550.             }
  551.             
  552.             public bool Is政治面貌Null() {
  553.                 return this.IsNull(this.table班级信息.政治面貌Column);
  554.             }
  555.             
  556.             public void Set政治面貌Null() {
  557.                 this[this.table班级信息.政治面貌Column] = System.Convert.DBNull;
  558.             }
  559.         }
  560.         
  561.         [System.Diagnostics.DebuggerStepThrough()]
  562.         public class 班级信息RowChangeEvent : EventArgs {
  563.             
  564.             private 班级信息Row eventRow;
  565.             
  566.             private DataRowAction eventAction;
  567.             
  568.             public 班级信息RowChangeEvent(班级信息Row row, DataRowAction action) {
  569.                 this.eventRow = row;
  570.                 this.eventAction = action;
  571.             }
  572.             
  573.             public 班级信息Row Row {
  574.                 get {
  575.                     return this.eventRow;
  576.                 }
  577.             }
  578.             
  579.             public DataRowAction Action {
  580.                 get {
  581.                     return this.eventAction;
  582.                 }
  583.             }
  584.         }
  585.     }
  586. }