Dataset1.cs
上传用户:yiyuerguo
上传日期:2014-09-27
资源大小:3781k
文件大小:27k
源码类别:

C#编程

开发平台:

Others

  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 jiaowu {
  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 Dataset1 : DataSet {
  22.         
  23.         private StudDataTable tableStud;
  24.         
  25.         private YuanxiDataTable tableYuanxi;
  26.         
  27.         public Dataset1() {
  28.             this.InitClass();
  29.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  30.             this.Tables.CollectionChanged += schemaChangedHandler;
  31.             this.Relations.CollectionChanged += schemaChangedHandler;
  32.         }
  33.         
  34.         protected Dataset1(SerializationInfo info, StreamingContext context) {
  35.             string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  36.             if ((strSchema != null)) {
  37.                 DataSet ds = new DataSet();
  38.                 ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
  39.                 if ((ds.Tables["Stud"] != null)) {
  40.                     this.Tables.Add(new StudDataTable(ds.Tables["Stud"]));
  41.                 }
  42.                 if ((ds.Tables["Yuanxi"] != null)) {
  43.                     this.Tables.Add(new YuanxiDataTable(ds.Tables["Yuanxi"]));
  44.                 }
  45.                 this.DataSetName = ds.DataSetName;
  46.                 this.Prefix = ds.Prefix;
  47.                 this.Namespace = ds.Namespace;
  48.                 this.Locale = ds.Locale;
  49.                 this.CaseSensitive = ds.CaseSensitive;
  50.                 this.EnforceConstraints = ds.EnforceConstraints;
  51.                 this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  52.                 this.InitVars();
  53.             }
  54.             else {
  55.                 this.InitClass();
  56.             }
  57.             this.GetSerializationData(info, context);
  58.             System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  59.             this.Tables.CollectionChanged += schemaChangedHandler;
  60.             this.Relations.CollectionChanged += schemaChangedHandler;
  61.         }
  62.         
  63.         [System.ComponentModel.Browsable(false)]
  64.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  65.         public StudDataTable Stud {
  66.             get {
  67.                 return this.tableStud;
  68.             }
  69.         }
  70.         
  71.         [System.ComponentModel.Browsable(false)]
  72.         [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
  73.         public YuanxiDataTable Yuanxi {
  74.             get {
  75.                 return this.tableYuanxi;
  76.             }
  77.         }
  78.         
  79.         public override DataSet Clone() {
  80.             Dataset1 cln = ((Dataset1)(base.Clone()));
  81.             cln.InitVars();
  82.             return cln;
  83.         }
  84.         
  85.         protected override bool ShouldSerializeTables() {
  86.             return false;
  87.         }
  88.         
  89.         protected override bool ShouldSerializeRelations() {
  90.             return false;
  91.         }
  92.         
  93.         protected override void ReadXmlSerializable(XmlReader reader) {
  94.             this.Reset();
  95.             DataSet ds = new DataSet();
  96.             ds.ReadXml(reader);
  97.             if ((ds.Tables["Stud"] != null)) {
  98.                 this.Tables.Add(new StudDataTable(ds.Tables["Stud"]));
  99.             }
  100.             if ((ds.Tables["Yuanxi"] != null)) {
  101.                 this.Tables.Add(new YuanxiDataTable(ds.Tables["Yuanxi"]));
  102.             }
  103.             this.DataSetName = ds.DataSetName;
  104.             this.Prefix = ds.Prefix;
  105.             this.Namespace = ds.Namespace;
  106.             this.Locale = ds.Locale;
  107.             this.CaseSensitive = ds.CaseSensitive;
  108.             this.EnforceConstraints = ds.EnforceConstraints;
  109.             this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
  110.             this.InitVars();
  111.         }
  112.         
  113.         protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  114.             System.IO.MemoryStream stream = new System.IO.MemoryStream();
  115.             this.WriteXmlSchema(new XmlTextWriter(stream, null));
  116.             stream.Position = 0;
  117.             return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
  118.         }
  119.         
  120.         internal void InitVars() {
  121.             this.tableStud = ((StudDataTable)(this.Tables["Stud"]));
  122.             if ((this.tableStud != null)) {
  123.                 this.tableStud.InitVars();
  124.             }
  125.             this.tableYuanxi = ((YuanxiDataTable)(this.Tables["Yuanxi"]));
  126.             if ((this.tableYuanxi != null)) {
  127.                 this.tableYuanxi.InitVars();
  128.             }
  129.         }
  130.         
  131.         private void InitClass() {
  132.             this.DataSetName = "Dataset1";
  133.             this.Prefix = "";
  134.             this.Namespace = "http://tempuri.org/Dataset1.xsd";
  135.             this.Locale = new System.Globalization.CultureInfo("en-US");
  136.             this.CaseSensitive = false;
  137.             this.EnforceConstraints = true;
  138.             this.tableStud = new StudDataTable();
  139.             this.Tables.Add(this.tableStud);
  140.             this.tableYuanxi = new YuanxiDataTable();
  141.             this.Tables.Add(this.tableYuanxi);
  142.         }
  143.         
  144.         private bool ShouldSerializeStud() {
  145.             return false;
  146.         }
  147.         
  148.         private bool ShouldSerializeYuanxi() {
  149.             return false;
  150.         }
  151.         
  152.         private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
  153.             if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
  154.                 this.InitVars();
  155.             }
  156.         }
  157.         
  158.         public delegate void StudRowChangeEventHandler(object sender, StudRowChangeEvent e);
  159.         
  160.         public delegate void YuanxiRowChangeEventHandler(object sender, YuanxiRowChangeEvent e);
  161.         
  162.         [System.Diagnostics.DebuggerStepThrough()]
  163.         public class StudDataTable : DataTable, System.Collections.IEnumerable {
  164.             
  165.             private DataColumn columns_ID;
  166.             
  167.             private DataColumn columns_Number;
  168.             
  169.             private DataColumn columns_Name;
  170.             
  171.             private DataColumn columns_Age;
  172.             
  173.             private DataColumn columnY_Number;
  174.             
  175.             internal StudDataTable() : 
  176.                     base("Stud") {
  177.                 this.InitClass();
  178.             }
  179.             
  180.             internal StudDataTable(DataTable table) : 
  181.                     base(table.TableName) {
  182.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  183.                     this.CaseSensitive = table.CaseSensitive;
  184.                 }
  185.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  186.                     this.Locale = table.Locale;
  187.                 }
  188.                 if ((table.Namespace != table.DataSet.Namespace)) {
  189.                     this.Namespace = table.Namespace;
  190.                 }
  191.                 this.Prefix = table.Prefix;
  192.                 this.MinimumCapacity = table.MinimumCapacity;
  193.                 this.DisplayExpression = table.DisplayExpression;
  194.             }
  195.             
  196.             [System.ComponentModel.Browsable(false)]
  197.             public int Count {
  198.                 get {
  199.                     return this.Rows.Count;
  200.                 }
  201.             }
  202.             
  203.             internal DataColumn s_IDColumn {
  204.                 get {
  205.                     return this.columns_ID;
  206.                 }
  207.             }
  208.             
  209.             internal DataColumn s_NumberColumn {
  210.                 get {
  211.                     return this.columns_Number;
  212.                 }
  213.             }
  214.             
  215.             internal DataColumn s_NameColumn {
  216.                 get {
  217.                     return this.columns_Name;
  218.                 }
  219.             }
  220.             
  221.             internal DataColumn s_AgeColumn {
  222.                 get {
  223.                     return this.columns_Age;
  224.                 }
  225.             }
  226.             
  227.             internal DataColumn Y_NumberColumn {
  228.                 get {
  229.                     return this.columnY_Number;
  230.                 }
  231.             }
  232.             
  233.             public StudRow this[int index] {
  234.                 get {
  235.                     return ((StudRow)(this.Rows[index]));
  236.                 }
  237.             }
  238.             
  239.             public event StudRowChangeEventHandler StudRowChanged;
  240.             
  241.             public event StudRowChangeEventHandler StudRowChanging;
  242.             
  243.             public event StudRowChangeEventHandler StudRowDeleted;
  244.             
  245.             public event StudRowChangeEventHandler StudRowDeleting;
  246.             
  247.             public void AddStudRow(StudRow row) {
  248.                 this.Rows.Add(row);
  249.             }
  250.             
  251.             public StudRow AddStudRow(string s_Number, string s_Name, int s_Age, int Y_Number) {
  252.                 StudRow rowStudRow = ((StudRow)(this.NewRow()));
  253.                 rowStudRow.ItemArray = new object[] {
  254.                         null,
  255.                         s_Number,
  256.                         s_Name,
  257.                         s_Age,
  258.                         Y_Number};
  259.                 this.Rows.Add(rowStudRow);
  260.                 return rowStudRow;
  261.             }
  262.             
  263.             public StudRow FindBys_Number(string s_Number) {
  264.                 return ((StudRow)(this.Rows.Find(new object[] {
  265.                             s_Number})));
  266.             }
  267.             
  268.             public System.Collections.IEnumerator GetEnumerator() {
  269.                 return this.Rows.GetEnumerator();
  270.             }
  271.             
  272.             public override DataTable Clone() {
  273.                 StudDataTable cln = ((StudDataTable)(base.Clone()));
  274.                 cln.InitVars();
  275.                 return cln;
  276.             }
  277.             
  278.             protected override DataTable CreateInstance() {
  279.                 return new StudDataTable();
  280.             }
  281.             
  282.             internal void InitVars() {
  283.                 this.columns_ID = this.Columns["s_ID"];
  284.                 this.columns_Number = this.Columns["s_Number"];
  285.                 this.columns_Name = this.Columns["s_Name"];
  286.                 this.columns_Age = this.Columns["s_Age"];
  287.                 this.columnY_Number = this.Columns["Y_Number"];
  288.             }
  289.             
  290.             private void InitClass() {
  291.                 this.columns_ID = new DataColumn("s_ID", typeof(int), null, System.Data.MappingType.Element);
  292.                 this.Columns.Add(this.columns_ID);
  293.                 this.columns_Number = new DataColumn("s_Number", typeof(string), null, System.Data.MappingType.Element);
  294.                 this.Columns.Add(this.columns_Number);
  295.                 this.columns_Name = new DataColumn("s_Name", typeof(string), null, System.Data.MappingType.Element);
  296.                 this.Columns.Add(this.columns_Name);
  297.                 this.columns_Age = new DataColumn("s_Age", typeof(int), null, System.Data.MappingType.Element);
  298.                 this.Columns.Add(this.columns_Age);
  299.                 this.columnY_Number = new DataColumn("Y_Number", typeof(int), null, System.Data.MappingType.Element);
  300.                 this.Columns.Add(this.columnY_Number);
  301.                 this.Constraints.Add(new UniqueConstraint("Dataset1Key1", new DataColumn[] {
  302.                                 this.columns_Number}, true));
  303.                 this.columns_ID.AutoIncrement = true;
  304.                 this.columns_ID.AllowDBNull = false;
  305.                 this.columns_ID.ReadOnly = true;
  306.                 this.columns_Number.AllowDBNull = false;
  307.                 this.columns_Number.Unique = true;
  308.                 this.columns_Name.AllowDBNull = false;
  309.                 this.columns_Age.AllowDBNull = false;
  310.                 this.columnY_Number.AllowDBNull = false;
  311.             }
  312.             
  313.             public StudRow NewStudRow() {
  314.                 return ((StudRow)(this.NewRow()));
  315.             }
  316.             
  317.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  318.                 return new StudRow(builder);
  319.             }
  320.             
  321.             protected override System.Type GetRowType() {
  322.                 return typeof(StudRow);
  323.             }
  324.             
  325.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  326.                 base.OnRowChanged(e);
  327.                 if ((this.StudRowChanged != null)) {
  328.                     this.StudRowChanged(this, new StudRowChangeEvent(((StudRow)(e.Row)), e.Action));
  329.                 }
  330.             }
  331.             
  332.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  333.                 base.OnRowChanging(e);
  334.                 if ((this.StudRowChanging != null)) {
  335.                     this.StudRowChanging(this, new StudRowChangeEvent(((StudRow)(e.Row)), e.Action));
  336.                 }
  337.             }
  338.             
  339.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  340.                 base.OnRowDeleted(e);
  341.                 if ((this.StudRowDeleted != null)) {
  342.                     this.StudRowDeleted(this, new StudRowChangeEvent(((StudRow)(e.Row)), e.Action));
  343.                 }
  344.             }
  345.             
  346.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  347.                 base.OnRowDeleting(e);
  348.                 if ((this.StudRowDeleting != null)) {
  349.                     this.StudRowDeleting(this, new StudRowChangeEvent(((StudRow)(e.Row)), e.Action));
  350.                 }
  351.             }
  352.             
  353.             public void RemoveStudRow(StudRow row) {
  354.                 this.Rows.Remove(row);
  355.             }
  356.         }
  357.         
  358.         [System.Diagnostics.DebuggerStepThrough()]
  359.         public class StudRow : DataRow {
  360.             
  361.             private StudDataTable tableStud;
  362.             
  363.             internal StudRow(DataRowBuilder rb) : 
  364.                     base(rb) {
  365.                 this.tableStud = ((StudDataTable)(this.Table));
  366.             }
  367.             
  368.             public int s_ID {
  369.                 get {
  370.                     return ((int)(this[this.tableStud.s_IDColumn]));
  371.                 }
  372.                 set {
  373.                     this[this.tableStud.s_IDColumn] = value;
  374.                 }
  375.             }
  376.             
  377.             public string s_Number {
  378.                 get {
  379.                     return ((string)(this[this.tableStud.s_NumberColumn]));
  380.                 }
  381.                 set {
  382.                     this[this.tableStud.s_NumberColumn] = value;
  383.                 }
  384.             }
  385.             
  386.             public string s_Name {
  387.                 get {
  388.                     return ((string)(this[this.tableStud.s_NameColumn]));
  389.                 }
  390.                 set {
  391.                     this[this.tableStud.s_NameColumn] = value;
  392.                 }
  393.             }
  394.             
  395.             public int s_Age {
  396.                 get {
  397.                     return ((int)(this[this.tableStud.s_AgeColumn]));
  398.                 }
  399.                 set {
  400.                     this[this.tableStud.s_AgeColumn] = value;
  401.                 }
  402.             }
  403.             
  404.             public int Y_Number {
  405.                 get {
  406.                     return ((int)(this[this.tableStud.Y_NumberColumn]));
  407.                 }
  408.                 set {
  409.                     this[this.tableStud.Y_NumberColumn] = value;
  410.                 }
  411.             }
  412.         }
  413.         
  414.         [System.Diagnostics.DebuggerStepThrough()]
  415.         public class StudRowChangeEvent : EventArgs {
  416.             
  417.             private StudRow eventRow;
  418.             
  419.             private DataRowAction eventAction;
  420.             
  421.             public StudRowChangeEvent(StudRow row, DataRowAction action) {
  422.                 this.eventRow = row;
  423.                 this.eventAction = action;
  424.             }
  425.             
  426.             public StudRow Row {
  427.                 get {
  428.                     return this.eventRow;
  429.                 }
  430.             }
  431.             
  432.             public DataRowAction Action {
  433.                 get {
  434.                     return this.eventAction;
  435.                 }
  436.             }
  437.         }
  438.         
  439.         [System.Diagnostics.DebuggerStepThrough()]
  440.         public class YuanxiDataTable : DataTable, System.Collections.IEnumerable {
  441.             
  442.             private DataColumn columnY_ID;
  443.             
  444.             private DataColumn columnY_Number;
  445.             
  446.             private DataColumn columnY_Name;
  447.             
  448.             private DataColumn columnY_Head;
  449.             
  450.             private DataColumn columnY_Des;
  451.             
  452.             internal YuanxiDataTable() : 
  453.                     base("Yuanxi") {
  454.                 this.InitClass();
  455.             }
  456.             
  457.             internal YuanxiDataTable(DataTable table) : 
  458.                     base(table.TableName) {
  459.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  460.                     this.CaseSensitive = table.CaseSensitive;
  461.                 }
  462.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  463.                     this.Locale = table.Locale;
  464.                 }
  465.                 if ((table.Namespace != table.DataSet.Namespace)) {
  466.                     this.Namespace = table.Namespace;
  467.                 }
  468.                 this.Prefix = table.Prefix;
  469.                 this.MinimumCapacity = table.MinimumCapacity;
  470.                 this.DisplayExpression = table.DisplayExpression;
  471.             }
  472.             
  473.             [System.ComponentModel.Browsable(false)]
  474.             public int Count {
  475.                 get {
  476.                     return this.Rows.Count;
  477.                 }
  478.             }
  479.             
  480.             internal DataColumn Y_IDColumn {
  481.                 get {
  482.                     return this.columnY_ID;
  483.                 }
  484.             }
  485.             
  486.             internal DataColumn Y_NumberColumn {
  487.                 get {
  488.                     return this.columnY_Number;
  489.                 }
  490.             }
  491.             
  492.             internal DataColumn Y_NameColumn {
  493.                 get {
  494.                     return this.columnY_Name;
  495.                 }
  496.             }
  497.             
  498.             internal DataColumn Y_HeadColumn {
  499.                 get {
  500.                     return this.columnY_Head;
  501.                 }
  502.             }
  503.             
  504.             internal DataColumn Y_DesColumn {
  505.                 get {
  506.                     return this.columnY_Des;
  507.                 }
  508.             }
  509.             
  510.             public YuanxiRow this[int index] {
  511.                 get {
  512.                     return ((YuanxiRow)(this.Rows[index]));
  513.                 }
  514.             }
  515.             
  516.             public event YuanxiRowChangeEventHandler YuanxiRowChanged;
  517.             
  518.             public event YuanxiRowChangeEventHandler YuanxiRowChanging;
  519.             
  520.             public event YuanxiRowChangeEventHandler YuanxiRowDeleted;
  521.             
  522.             public event YuanxiRowChangeEventHandler YuanxiRowDeleting;
  523.             
  524.             public void AddYuanxiRow(YuanxiRow row) {
  525.                 this.Rows.Add(row);
  526.             }
  527.             
  528.             public YuanxiRow AddYuanxiRow(int Y_Number, string Y_Name, string Y_Head, string Y_Des) {
  529.                 YuanxiRow rowYuanxiRow = ((YuanxiRow)(this.NewRow()));
  530.                 rowYuanxiRow.ItemArray = new object[] {
  531.                         null,
  532.                         Y_Number,
  533.                         Y_Name,
  534.                         Y_Head,
  535.                         Y_Des};
  536.                 this.Rows.Add(rowYuanxiRow);
  537.                 return rowYuanxiRow;
  538.             }
  539.             
  540.             public YuanxiRow FindByY_Number(int Y_Number) {
  541.                 return ((YuanxiRow)(this.Rows.Find(new object[] {
  542.                             Y_Number})));
  543.             }
  544.             
  545.             public System.Collections.IEnumerator GetEnumerator() {
  546.                 return this.Rows.GetEnumerator();
  547.             }
  548.             
  549.             public override DataTable Clone() {
  550.                 YuanxiDataTable cln = ((YuanxiDataTable)(base.Clone()));
  551.                 cln.InitVars();
  552.                 return cln;
  553.             }
  554.             
  555.             protected override DataTable CreateInstance() {
  556.                 return new YuanxiDataTable();
  557.             }
  558.             
  559.             internal void InitVars() {
  560.                 this.columnY_ID = this.Columns["Y_ID"];
  561.                 this.columnY_Number = this.Columns["Y_Number"];
  562.                 this.columnY_Name = this.Columns["Y_Name"];
  563.                 this.columnY_Head = this.Columns["Y_Head"];
  564.                 this.columnY_Des = this.Columns["Y_Des"];
  565.             }
  566.             
  567.             private void InitClass() {
  568.                 this.columnY_ID = new DataColumn("Y_ID", typeof(int), null, System.Data.MappingType.Element);
  569.                 this.Columns.Add(this.columnY_ID);
  570.                 this.columnY_Number = new DataColumn("Y_Number", typeof(int), null, System.Data.MappingType.Element);
  571.                 this.Columns.Add(this.columnY_Number);
  572.                 this.columnY_Name = new DataColumn("Y_Name", typeof(string), null, System.Data.MappingType.Element);
  573.                 this.Columns.Add(this.columnY_Name);
  574.                 this.columnY_Head = new DataColumn("Y_Head", typeof(string), null, System.Data.MappingType.Element);
  575.                 this.Columns.Add(this.columnY_Head);
  576.                 this.columnY_Des = new DataColumn("Y_Des", typeof(string), null, System.Data.MappingType.Element);
  577.                 this.Columns.Add(this.columnY_Des);
  578.                 this.Constraints.Add(new UniqueConstraint("Dataset1Key2", new DataColumn[] {
  579.                                 this.columnY_Number}, true));
  580.                 this.columnY_ID.AutoIncrement = true;
  581.                 this.columnY_ID.AllowDBNull = false;
  582.                 this.columnY_ID.ReadOnly = true;
  583.                 this.columnY_Number.AllowDBNull = false;
  584.                 this.columnY_Number.Unique = true;
  585.                 this.columnY_Name.AllowDBNull = false;
  586.                 this.columnY_Head.AllowDBNull = false;
  587.             }
  588.             
  589.             public YuanxiRow NewYuanxiRow() {
  590.                 return ((YuanxiRow)(this.NewRow()));
  591.             }
  592.             
  593.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  594.                 return new YuanxiRow(builder);
  595.             }
  596.             
  597.             protected override System.Type GetRowType() {
  598.                 return typeof(YuanxiRow);
  599.             }
  600.             
  601.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  602.                 base.OnRowChanged(e);
  603.                 if ((this.YuanxiRowChanged != null)) {
  604.                     this.YuanxiRowChanged(this, new YuanxiRowChangeEvent(((YuanxiRow)(e.Row)), e.Action));
  605.                 }
  606.             }
  607.             
  608.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  609.                 base.OnRowChanging(e);
  610.                 if ((this.YuanxiRowChanging != null)) {
  611.                     this.YuanxiRowChanging(this, new YuanxiRowChangeEvent(((YuanxiRow)(e.Row)), e.Action));
  612.                 }
  613.             }
  614.             
  615.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  616.                 base.OnRowDeleted(e);
  617.                 if ((this.YuanxiRowDeleted != null)) {
  618.                     this.YuanxiRowDeleted(this, new YuanxiRowChangeEvent(((YuanxiRow)(e.Row)), e.Action));
  619.                 }
  620.             }
  621.             
  622.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  623.                 base.OnRowDeleting(e);
  624.                 if ((this.YuanxiRowDeleting != null)) {
  625.                     this.YuanxiRowDeleting(this, new YuanxiRowChangeEvent(((YuanxiRow)(e.Row)), e.Action));
  626.                 }
  627.             }
  628.             
  629.             public void RemoveYuanxiRow(YuanxiRow row) {
  630.                 this.Rows.Remove(row);
  631.             }
  632.         }
  633.         
  634.         [System.Diagnostics.DebuggerStepThrough()]
  635.         public class YuanxiRow : DataRow {
  636.             
  637.             private YuanxiDataTable tableYuanxi;
  638.             
  639.             internal YuanxiRow(DataRowBuilder rb) : 
  640.                     base(rb) {
  641.                 this.tableYuanxi = ((YuanxiDataTable)(this.Table));
  642.             }
  643.             
  644.             public int Y_ID {
  645.                 get {
  646.                     return ((int)(this[this.tableYuanxi.Y_IDColumn]));
  647.                 }
  648.                 set {
  649.                     this[this.tableYuanxi.Y_IDColumn] = value;
  650.                 }
  651.             }
  652.             
  653.             public int Y_Number {
  654.                 get {
  655.                     return ((int)(this[this.tableYuanxi.Y_NumberColumn]));
  656.                 }
  657.                 set {
  658.                     this[this.tableYuanxi.Y_NumberColumn] = value;
  659.                 }
  660.             }
  661.             
  662.             public string Y_Name {
  663.                 get {
  664.                     return ((string)(this[this.tableYuanxi.Y_NameColumn]));
  665.                 }
  666.                 set {
  667.                     this[this.tableYuanxi.Y_NameColumn] = value;
  668.                 }
  669.             }
  670.             
  671.             public string Y_Head {
  672.                 get {
  673.                     return ((string)(this[this.tableYuanxi.Y_HeadColumn]));
  674.                 }
  675.                 set {
  676.                     this[this.tableYuanxi.Y_HeadColumn] = value;
  677.                 }
  678.             }
  679.             
  680.             public string Y_Des {
  681.                 get {
  682.                     try {
  683.                         return ((string)(this[this.tableYuanxi.Y_DesColumn]));
  684.                     }
  685.                     catch (InvalidCastException e) {
  686.                         throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
  687.                     }
  688.                 }
  689.                 set {
  690.                     this[this.tableYuanxi.Y_DesColumn] = value;
  691.                 }
  692.             }
  693.             
  694.             public bool IsY_DesNull() {
  695.                 return this.IsNull(this.tableYuanxi.Y_DesColumn);
  696.             }
  697.             
  698.             public void SetY_DesNull() {
  699.                 this[this.tableYuanxi.Y_DesColumn] = System.Convert.DBNull;
  700.             }
  701.         }
  702.         
  703.         [System.Diagnostics.DebuggerStepThrough()]
  704.         public class YuanxiRowChangeEvent : EventArgs {
  705.             
  706.             private YuanxiRow eventRow;
  707.             
  708.             private DataRowAction eventAction;
  709.             
  710.             public YuanxiRowChangeEvent(YuanxiRow row, DataRowAction action) {
  711.                 this.eventRow = row;
  712.                 this.eventAction = action;
  713.             }
  714.             
  715.             public YuanxiRow Row {
  716.                 get {
  717.                     return this.eventRow;
  718.                 }
  719.             }
  720.             
  721.             public DataRowAction Action {
  722.                 get {
  723.                     return this.eventAction;
  724.                 }
  725.             }
  726.         }
  727.     }
  728. }