📄 aa.cs
字号:
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.0.3705.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
namespace books {
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 aa : DataSet {
private TABLE1DataTable tableTABLE1;
public aa() {
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
protected aa(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["TABLE1"] != null)) {
this.Tables.Add(new TABLE1DataTable(ds.Tables["TABLE1"]));
}
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 TABLE1DataTable TABLE1 {
get {
return this.tableTABLE1;
}
}
public override DataSet Clone() {
aa cln = ((aa)(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["TABLE1"] != null)) {
this.Tables.Add(new TABLE1DataTable(ds.Tables["TABLE1"]));
}
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.tableTABLE1 = ((TABLE1DataTable)(this.Tables["TABLE1"]));
if ((this.tableTABLE1 != null)) {
this.tableTABLE1.InitVars();
}
}
private void InitClass() {
this.DataSetName = "aa";
this.Prefix = "";
this.Namespace = "http://www.tempuri.org/aa.xsd";
this.Locale = new System.Globalization.CultureInfo("zh-CN");
this.CaseSensitive = false;
this.EnforceConstraints = true;
this.tableTABLE1 = new TABLE1DataTable();
this.Tables.Add(this.tableTABLE1);
}
private bool ShouldSerializeTABLE1() {
return false;
}
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
public delegate void TABLE1RowChangeEventHandler(object sender, TABLE1RowChangeEvent e);
[System.Diagnostics.DebuggerStepThrough()]
public class TABLE1DataTable : DataTable, System.Collections.IEnumerable {
private DataColumn column书名;
private DataColumn column作者;
private DataColumn column出版社;
private DataColumn column出版日期;
private DataColumn column定价;
internal TABLE1DataTable() :
base("TABLE1") {
this.InitClass();
}
internal TABLE1DataTable(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定价;
}
}
public TABLE1Row this[int index] {
get {
return ((TABLE1Row)(this.Rows[index]));
}
}
public event TABLE1RowChangeEventHandler TABLE1RowChanged;
public event TABLE1RowChangeEventHandler TABLE1RowChanging;
public event TABLE1RowChangeEventHandler TABLE1RowDeleted;
public event TABLE1RowChangeEventHandler TABLE1RowDeleting;
public void AddTABLE1Row(TABLE1Row row) {
this.Rows.Add(row);
}
public TABLE1Row AddTABLE1Row(string 书名, string 作者, string 出版社, string 出版日期, string 定价) {
TABLE1Row rowTABLE1Row = ((TABLE1Row)(this.NewRow()));
rowTABLE1Row.ItemArray = new object[] {
书名,
作者,
出版社,
出版日期,
定价};
this.Rows.Add(rowTABLE1Row);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -