📄 datasetdetail.cs
字号:
//------------------------------------------------------------------------------
// <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 DbDemo {
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 DataSetDetail : DataSet {
private 客戶DataTable table客戶;
public DataSetDetail() {
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
protected DataSetDetail(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["客戶"]));
}
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客戶;
}
}
public override DataSet Clone() {
DataSetDetail cln = ((DataSetDetail)(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["客戶"]));
}
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();
}
}
private void InitClass() {
this.DataSetName = "DataSetDetail";
this.Prefix = "";
this.Namespace = "http://www.tempuri.org/DataSetDetail.xsd";
this.Locale = new System.Globalization.CultureInfo("zh-TW");
this.CaseSensitive = false;
this.EnforceConstraints = true;
this.table客戶 = new 客戶DataTable();
this.Tables.Add(this.table客戶);
}
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);
[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郵遞區號;
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郵遞區號;
}
}
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 電話號碼, string 傳真號碼, string 郵遞區號) {
客戶Row row客戶Row = ((客戶Row)(this.NewRow()));
row客戶Row.ItemArray = new object[] {
公司名稱,
客戶地址,
null,
連絡人名字,
電話號碼,
傳真號碼,
郵遞區號};
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()));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -