DataSet1.cs
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:27k
源码类别:

C#编程

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. // <autogenerated>
  3. //     This code was generated by a tool.
  4. //     Runtime Version: 1.0.3705.0
  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 UpdateDataSet {
  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 SuppliersDataTable tableSuppliers;
  24.         
  25.         public DataSet1() {
  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 DataSet1(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["Suppliers"] != null)) {
  38.                     this.Tables.Add(new SuppliersDataTable(ds.Tables["Suppliers"]));
  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 SuppliersDataTable Suppliers {
  61.             get {
  62.                 return this.tableSuppliers;
  63.             }
  64.         }
  65.         
  66.         public override DataSet Clone() {
  67.             DataSet1 cln = ((DataSet1)(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["Suppliers"] != null)) {
  85.                 this.Tables.Add(new SuppliersDataTable(ds.Tables["Suppliers"]));
  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.tableSuppliers = ((SuppliersDataTable)(this.Tables["Suppliers"]));
  106.             if ((this.tableSuppliers != null)) {
  107.                 this.tableSuppliers.InitVars();
  108.             }
  109.         }
  110.         
  111.         private void InitClass() {
  112.             this.DataSetName = "DataSet1";
  113.             this.Prefix = "";
  114.             this.Namespace = "http://www.tempuri.org/DataSet1.xsd";
  115.             this.Locale = new System.Globalization.CultureInfo("en-GB");
  116.             this.CaseSensitive = false;
  117.             this.EnforceConstraints = true;
  118.             this.tableSuppliers = new SuppliersDataTable();
  119.             this.Tables.Add(this.tableSuppliers);
  120.         }
  121.         
  122.         private bool ShouldSerializeSuppliers() {
  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 SuppliersRowChangeEventHandler(object sender, SuppliersRowChangeEvent e);
  133.         
  134.         [System.Diagnostics.DebuggerStepThrough()]
  135.         public class SuppliersDataTable : DataTable, System.Collections.IEnumerable {
  136.             
  137.             private DataColumn columnSupplierID;
  138.             
  139.             private DataColumn columnCompanyName;
  140.             
  141.             private DataColumn columnContactName;
  142.             
  143.             private DataColumn columnContactTitle;
  144.             
  145.             private DataColumn columnAddress;
  146.             
  147.             private DataColumn columnCity;
  148.             
  149.             private DataColumn columnRegion;
  150.             
  151.             private DataColumn columnPostalCode;
  152.             
  153.             private DataColumn columnCountry;
  154.             
  155.             private DataColumn columnPhone;
  156.             
  157.             private DataColumn columnFax;
  158.             
  159.             private DataColumn columnHomePage;
  160.             
  161.             internal SuppliersDataTable() : 
  162.                     base("Suppliers") {
  163.                 this.InitClass();
  164.             }
  165.             
  166.             internal SuppliersDataTable(DataTable table) : 
  167.                     base(table.TableName) {
  168.                 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  169.                     this.CaseSensitive = table.CaseSensitive;
  170.                 }
  171.                 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  172.                     this.Locale = table.Locale;
  173.                 }
  174.                 if ((table.Namespace != table.DataSet.Namespace)) {
  175.                     this.Namespace = table.Namespace;
  176.                 }
  177.                 this.Prefix = table.Prefix;
  178.                 this.MinimumCapacity = table.MinimumCapacity;
  179.                 this.DisplayExpression = table.DisplayExpression;
  180.             }
  181.             
  182.             [System.ComponentModel.Browsable(false)]
  183.             public int Count {
  184.                 get {
  185.                     return this.Rows.Count;
  186.                 }
  187.             }
  188.             
  189.             internal DataColumn SupplierIDColumn {
  190.                 get {
  191.                     return this.columnSupplierID;
  192.                 }
  193.             }
  194.             
  195.             internal DataColumn CompanyNameColumn {
  196.                 get {
  197.                     return this.columnCompanyName;
  198.                 }
  199.             }
  200.             
  201.             internal DataColumn ContactNameColumn {
  202.                 get {
  203.                     return this.columnContactName;
  204.                 }
  205.             }
  206.             
  207.             internal DataColumn ContactTitleColumn {
  208.                 get {
  209.                     return this.columnContactTitle;
  210.                 }
  211.             }
  212.             
  213.             internal DataColumn AddressColumn {
  214.                 get {
  215.                     return this.columnAddress;
  216.                 }
  217.             }
  218.             
  219.             internal DataColumn CityColumn {
  220.                 get {
  221.                     return this.columnCity;
  222.                 }
  223.             }
  224.             
  225.             internal DataColumn RegionColumn {
  226.                 get {
  227.                     return this.columnRegion;
  228.                 }
  229.             }
  230.             
  231.             internal DataColumn PostalCodeColumn {
  232.                 get {
  233.                     return this.columnPostalCode;
  234.                 }
  235.             }
  236.             
  237.             internal DataColumn CountryColumn {
  238.                 get {
  239.                     return this.columnCountry;
  240.                 }
  241.             }
  242.             
  243.             internal DataColumn PhoneColumn {
  244.                 get {
  245.                     return this.columnPhone;
  246.                 }
  247.             }
  248.             
  249.             internal DataColumn FaxColumn {
  250.                 get {
  251.                     return this.columnFax;
  252.                 }
  253.             }
  254.             
  255.             internal DataColumn HomePageColumn {
  256.                 get {
  257.                     return this.columnHomePage;
  258.                 }
  259.             }
  260.             
  261.             public SuppliersRow this[int index] {
  262.                 get {
  263.                     return ((SuppliersRow)(this.Rows[index]));
  264.                 }
  265.             }
  266.             
  267.             public event SuppliersRowChangeEventHandler SuppliersRowChanged;
  268.             
  269.             public event SuppliersRowChangeEventHandler SuppliersRowChanging;
  270.             
  271.             public event SuppliersRowChangeEventHandler SuppliersRowDeleted;
  272.             
  273.             public event SuppliersRowChangeEventHandler SuppliersRowDeleting;
  274.             
  275.             public void AddSuppliersRow(SuppliersRow row) {
  276.                 this.Rows.Add(row);
  277.             }
  278.             
  279.             public SuppliersRow AddSuppliersRow(string CompanyName, string ContactName, string ContactTitle, string Address, string City, string Region, string PostalCode, string Country, string Phone, string Fax, string HomePage) {
  280.                 SuppliersRow rowSuppliersRow = ((SuppliersRow)(this.NewRow()));
  281.                 rowSuppliersRow.ItemArray = new object[] {
  282.                         null,
  283.                         CompanyName,
  284.                         ContactName,
  285.                         ContactTitle,
  286.                         Address,
  287.                         City,
  288.                         Region,
  289.                         PostalCode,
  290.                         Country,
  291.                         Phone,
  292.                         Fax,
  293.                         HomePage};
  294.                 this.Rows.Add(rowSuppliersRow);
  295.                 return rowSuppliersRow;
  296.             }
  297.             
  298.             public SuppliersRow FindBySupplierID(int SupplierID) {
  299.                 return ((SuppliersRow)(this.Rows.Find(new object[] {
  300.                             SupplierID})));
  301.             }
  302.             
  303.             public System.Collections.IEnumerator GetEnumerator() {
  304.                 return this.Rows.GetEnumerator();
  305.             }
  306.             
  307.             public override DataTable Clone() {
  308.                 SuppliersDataTable cln = ((SuppliersDataTable)(base.Clone()));
  309.                 cln.InitVars();
  310.                 return cln;
  311.             }
  312.             
  313.             internal void InitVars() {
  314.                 this.columnSupplierID = this.Columns["SupplierID"];
  315.                 this.columnCompanyName = this.Columns["CompanyName"];
  316.                 this.columnContactName = this.Columns["ContactName"];
  317.                 this.columnContactTitle = this.Columns["ContactTitle"];
  318.                 this.columnAddress = this.Columns["Address"];
  319.                 this.columnCity = this.Columns["City"];
  320.                 this.columnRegion = this.Columns["Region"];
  321.                 this.columnPostalCode = this.Columns["PostalCode"];
  322.                 this.columnCountry = this.Columns["Country"];
  323.                 this.columnPhone = this.Columns["Phone"];
  324.                 this.columnFax = this.Columns["Fax"];
  325.                 this.columnHomePage = this.Columns["HomePage"];
  326.             }
  327.             
  328.             private void InitClass() {
  329.                 this.columnSupplierID = new DataColumn("SupplierID", typeof(int), null, System.Data.MappingType.Element);
  330.                 this.Columns.Add(this.columnSupplierID);
  331.                 this.columnCompanyName = new DataColumn("CompanyName", typeof(string), null, System.Data.MappingType.Element);
  332.                 this.Columns.Add(this.columnCompanyName);
  333.                 this.columnContactName = new DataColumn("ContactName", typeof(string), null, System.Data.MappingType.Element);
  334.                 this.Columns.Add(this.columnContactName);
  335.                 this.columnContactTitle = new DataColumn("ContactTitle", typeof(string), null, System.Data.MappingType.Element);
  336.                 this.Columns.Add(this.columnContactTitle);
  337.                 this.columnAddress = new DataColumn("Address", typeof(string), null, System.Data.MappingType.Element);
  338.                 this.Columns.Add(this.columnAddress);
  339.                 this.columnCity = new DataColumn("City", typeof(string), null, System.Data.MappingType.Element);
  340.                 this.Columns.Add(this.columnCity);
  341.                 this.columnRegion = new DataColumn("Region", typeof(string), null, System.Data.MappingType.Element);
  342.                 this.Columns.Add(this.columnRegion);
  343.                 this.columnPostalCode = new DataColumn("PostalCode", typeof(string), null, System.Data.MappingType.Element);
  344.                 this.Columns.Add(this.columnPostalCode);
  345.                 this.columnCountry = new DataColumn("Country", typeof(string), null, System.Data.MappingType.Element);
  346.                 this.Columns.Add(this.columnCountry);
  347.                 this.columnPhone = new DataColumn("Phone", typeof(string), null, System.Data.MappingType.Element);
  348.                 this.Columns.Add(this.columnPhone);
  349.                 this.columnFax = new DataColumn("Fax", typeof(string), null, System.Data.MappingType.Element);
  350.                 this.Columns.Add(this.columnFax);
  351.                 this.columnHomePage = new DataColumn("HomePage", typeof(string), null, System.Data.MappingType.Element);
  352.                 this.Columns.Add(this.columnHomePage);
  353.                 this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
  354.                                 this.columnSupplierID}, true));
  355.                 this.columnSupplierID.AutoIncrement = true;
  356.                 this.columnSupplierID.AllowDBNull = false;
  357.                 this.columnSupplierID.ReadOnly = true;
  358.                 this.columnSupplierID.Unique = true;
  359.                 this.columnCompanyName.AllowDBNull = false;
  360.             }
  361.             
  362.             public SuppliersRow NewSuppliersRow() {
  363.                 return ((SuppliersRow)(this.NewRow()));
  364.             }
  365.             
  366.             protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
  367.                 return new SuppliersRow(builder);
  368.             }
  369.             
  370.             protected override System.Type GetRowType() {
  371.                 return typeof(SuppliersRow);
  372.             }
  373.             
  374.             protected override void OnRowChanged(DataRowChangeEventArgs e) {
  375.                 base.OnRowChanged(e);
  376.                 if ((this.SuppliersRowChanged != null)) {
  377.                     this.SuppliersRowChanged(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
  378.                 }
  379.             }
  380.             
  381.             protected override void OnRowChanging(DataRowChangeEventArgs e) {
  382.                 base.OnRowChanging(e);
  383.                 if ((this.SuppliersRowChanging != null)) {
  384.                     this.SuppliersRowChanging(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
  385.                 }
  386.             }
  387.             
  388.             protected override void OnRowDeleted(DataRowChangeEventArgs e) {
  389.                 base.OnRowDeleted(e);
  390.                 if ((this.SuppliersRowDeleted != null)) {
  391.                     this.SuppliersRowDeleted(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
  392.                 }
  393.             }
  394.             
  395.             protected override void OnRowDeleting(DataRowChangeEventArgs e) {
  396.                 base.OnRowDeleting(e);
  397.                 if ((this.SuppliersRowDeleting != null)) {
  398.                     this.SuppliersRowDeleting(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
  399.                 }
  400.             }
  401.             
  402.             public void RemoveSuppliersRow(SuppliersRow row) {
  403.                 this.Rows.Remove(row);
  404.             }
  405.         }
  406.         
  407.         [System.Diagnostics.DebuggerStepThrough()]
  408.         public class SuppliersRow : DataRow {
  409.             
  410.             private SuppliersDataTable tableSuppliers;
  411.             
  412.             internal SuppliersRow(DataRowBuilder rb) : 
  413.                     base(rb) {
  414.                 this.tableSuppliers = ((SuppliersDataTable)(this.Table));
  415.             }
  416.             
  417.             public int SupplierID {
  418.                 get {
  419.                     return ((int)(this[this.tableSuppliers.SupplierIDColumn]));
  420.                 }
  421.                 set {
  422.                     this[this.tableSuppliers.SupplierIDColumn] = value;
  423.                 }
  424.             }
  425.             
  426.             public string CompanyName {
  427.                 get {
  428.                     return ((string)(this[this.tableSuppliers.CompanyNameColumn]));
  429.                 }
  430.                 set {
  431.                     this[this.tableSuppliers.CompanyNameColumn] = value;
  432.                 }
  433.             }
  434.             
  435.             public string ContactName {
  436.                 get {
  437.                     try {
  438.                         return ((string)(this[this.tableSuppliers.ContactNameColumn]));
  439.                     }
  440.                     catch (InvalidCastException e) {
  441.                         throw new StrongTypingException("Cannot get value because it is DBNull.", e);
  442.                     }
  443.                 }
  444.                 set {
  445.                     this[this.tableSuppliers.ContactNameColumn] = value;
  446.                 }
  447.             }
  448.             
  449.             public string ContactTitle {
  450.                 get {
  451.                     try {
  452.                         return ((string)(this[this.tableSuppliers.ContactTitleColumn]));
  453.                     }
  454.                     catch (InvalidCastException e) {
  455.                         throw new StrongTypingException("Cannot get value because it is DBNull.", e);
  456.                     }
  457.                 }
  458.                 set {
  459.                     this[this.tableSuppliers.ContactTitleColumn] = value;
  460.                 }
  461.             }
  462.             
  463.             public string Address {
  464.                 get {
  465.                     try {
  466.                         return ((string)(this[this.tableSuppliers.AddressColumn]));
  467.                     }
  468.                     catch (InvalidCastException e) {
  469.                         throw new StrongTypingException("Cannot get value because it is DBNull.", e);
  470.                     }
  471.                 }
  472.                 set {
  473.                     this[this.tableSuppliers.AddressColumn] = value;
  474.                 }
  475.             }
  476.             
  477.             public string City {
  478.                 get {
  479.                     try {
  480.                         return ((string)(this[this.tableSuppliers.CityColumn]));
  481.                     }
  482.                     catch (InvalidCastException e) {
  483.                         throw new StrongTypingException("Cannot get value because it is DBNull.", e);
  484.                     }
  485.                 }
  486.                 set {
  487.                     this[this.tableSuppliers.CityColumn] = value;
  488.                 }
  489.             }
  490.             
  491.             public string Region {
  492.                 get {
  493.                     try {
  494.                         return ((string)(this[this.tableSuppliers.RegionColumn]));
  495.                     }
  496.                     catch (InvalidCastException e) {
  497.                         throw new StrongTypingException("Cannot get value because it is DBNull.", e);
  498.                     }
  499.                 }
  500.                 set {
  501.                     this[this.tableSuppliers.RegionColumn] = value;
  502.                 }
  503.             }
  504.             
  505.             public string PostalCode {
  506.                 get {
  507.                     try {
  508.                         return ((string)(this[this.tableSuppliers.PostalCodeColumn]));
  509.                     }
  510.                     catch (InvalidCastException e) {
  511.                         throw new StrongTypingException("Cannot get value because it is DBNull.", e);
  512.                     }
  513.                 }
  514.                 set {
  515.                     this[this.tableSuppliers.PostalCodeColumn] = value;
  516.                 }
  517.             }
  518.             
  519.             public string Country {
  520.                 get {
  521.                     try {
  522.                         return ((string)(this[this.tableSuppliers.CountryColumn]));
  523.                     }
  524.                     catch (InvalidCastException e) {
  525.                         throw new StrongTypingException("Cannot get value because it is DBNull.", e);
  526.                     }
  527.                 }
  528.                 set {
  529.                     this[this.tableSuppliers.CountryColumn] = value;
  530.                 }
  531.             }
  532.             
  533.             public string Phone {
  534.                 get {
  535.                     try {
  536.                         return ((string)(this[this.tableSuppliers.PhoneColumn]));
  537.                     }
  538.                     catch (InvalidCastException e) {
  539.                         throw new StrongTypingException("Cannot get value because it is DBNull.", e);
  540.                     }
  541.                 }
  542.                 set {
  543.                     this[this.tableSuppliers.PhoneColumn] = value;
  544.                 }
  545.             }
  546.             
  547.             public string Fax {
  548.                 get {
  549.                     try {
  550.                         return ((string)(this[this.tableSuppliers.FaxColumn]));
  551.                     }
  552.                     catch (InvalidCastException e) {
  553.                         throw new StrongTypingException("Cannot get value because it is DBNull.", e);
  554.                     }
  555.                 }
  556.                 set {
  557.                     this[this.tableSuppliers.FaxColumn] = value;
  558.                 }
  559.             }
  560.             
  561.             public string HomePage {
  562.                 get {
  563.                     try {
  564.                         return ((string)(this[this.tableSuppliers.HomePageColumn]));
  565.                     }
  566.                     catch (InvalidCastException e) {
  567.                         throw new StrongTypingException("Cannot get value because it is DBNull.", e);
  568.                     }
  569.                 }
  570.                 set {
  571.                     this[this.tableSuppliers.HomePageColumn] = value;
  572.                 }
  573.             }
  574.             
  575.             public bool IsContactNameNull() {
  576.                 return this.IsNull(this.tableSuppliers.ContactNameColumn);
  577.             }
  578.             
  579.             public void SetContactNameNull() {
  580.                 this[this.tableSuppliers.ContactNameColumn] = System.Convert.DBNull;
  581.             }
  582.             
  583.             public bool IsContactTitleNull() {
  584.                 return this.IsNull(this.tableSuppliers.ContactTitleColumn);
  585.             }
  586.             
  587.             public void SetContactTitleNull() {
  588.                 this[this.tableSuppliers.ContactTitleColumn] = System.Convert.DBNull;
  589.             }
  590.             
  591.             public bool IsAddressNull() {
  592.                 return this.IsNull(this.tableSuppliers.AddressColumn);
  593.             }
  594.             
  595.             public void SetAddressNull() {
  596.                 this[this.tableSuppliers.AddressColumn] = System.Convert.DBNull;
  597.             }
  598.             
  599.             public bool IsCityNull() {
  600.                 return this.IsNull(this.tableSuppliers.CityColumn);
  601.             }
  602.             
  603.             public void SetCityNull() {
  604.                 this[this.tableSuppliers.CityColumn] = System.Convert.DBNull;
  605.             }
  606.             
  607.             public bool IsRegionNull() {
  608.                 return this.IsNull(this.tableSuppliers.RegionColumn);
  609.             }
  610.             
  611.             public void SetRegionNull() {
  612.                 this[this.tableSuppliers.RegionColumn] = System.Convert.DBNull;
  613.             }
  614.             
  615.             public bool IsPostalCodeNull() {
  616.                 return this.IsNull(this.tableSuppliers.PostalCodeColumn);
  617.             }
  618.             
  619.             public void SetPostalCodeNull() {
  620.                 this[this.tableSuppliers.PostalCodeColumn] = System.Convert.DBNull;
  621.             }
  622.             
  623.             public bool IsCountryNull() {
  624.                 return this.IsNull(this.tableSuppliers.CountryColumn);
  625.             }
  626.             
  627.             public void SetCountryNull() {
  628.                 this[this.tableSuppliers.CountryColumn] = System.Convert.DBNull;
  629.             }
  630.             
  631.             public bool IsPhoneNull() {
  632.                 return this.IsNull(this.tableSuppliers.PhoneColumn);
  633.             }
  634.             
  635.             public void SetPhoneNull() {
  636.                 this[this.tableSuppliers.PhoneColumn] = System.Convert.DBNull;
  637.             }
  638.             
  639.             public bool IsFaxNull() {
  640.                 return this.IsNull(this.tableSuppliers.FaxColumn);
  641.             }
  642.             
  643.             public void SetFaxNull() {
  644.                 this[this.tableSuppliers.FaxColumn] = System.Convert.DBNull;
  645.             }
  646.             
  647.             public bool IsHomePageNull() {
  648.                 return this.IsNull(this.tableSuppliers.HomePageColumn);
  649.             }
  650.             
  651.             public void SetHomePageNull() {
  652.                 this[this.tableSuppliers.HomePageColumn] = System.Convert.DBNull;
  653.             }
  654.         }
  655.         
  656.         [System.Diagnostics.DebuggerStepThrough()]
  657.         public class SuppliersRowChangeEvent : EventArgs {
  658.             
  659.             private SuppliersRow eventRow;
  660.             
  661.             private DataRowAction eventAction;
  662.             
  663.             public SuppliersRowChangeEvent(SuppliersRow row, DataRowAction action) {
  664.                 this.eventRow = row;
  665.                 this.eventAction = action;
  666.             }
  667.             
  668.             public SuppliersRow Row {
  669.                 get {
  670.                     return this.eventRow;
  671.                 }
  672.             }
  673.             
  674.             public DataRowAction Action {
  675.                 get {
  676.                     return this.eventAction;
  677.                 }
  678.             }
  679.         }
  680.     }
  681. }