📄 stusum.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 stuman {
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 stusum : DataSet {
private TbstusumDataTable tableTbstusum;
private summainDataTable tablesummain;
private praceDataTable tableprace;
private mistakeDataTable tablemistake;
private DataRelation relationsummain_prace;
private DataRelation relationsummain_mistake;
private DataRelation relationTbstusum_summain;
public stusum() {
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
protected stusum(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["Tbstusum"] != null)) {
this.Tables.Add(new TbstusumDataTable(ds.Tables["Tbstusum"]));
}
if ((ds.Tables["summain"] != null)) {
this.Tables.Add(new summainDataTable(ds.Tables["summain"]));
}
if ((ds.Tables["prace"] != null)) {
this.Tables.Add(new praceDataTable(ds.Tables["prace"]));
}
if ((ds.Tables["mistake"] != null)) {
this.Tables.Add(new mistakeDataTable(ds.Tables["mistake"]));
}
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 TbstusumDataTable Tbstusum {
get {
return this.tableTbstusum;
}
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public summainDataTable summain {
get {
return this.tablesummain;
}
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public praceDataTable prace {
get {
return this.tableprace;
}
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public mistakeDataTable mistake {
get {
return this.tablemistake;
}
}
public override DataSet Clone() {
stusum cln = ((stusum)(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["Tbstusum"] != null)) {
this.Tables.Add(new TbstusumDataTable(ds.Tables["Tbstusum"]));
}
if ((ds.Tables["summain"] != null)) {
this.Tables.Add(new summainDataTable(ds.Tables["summain"]));
}
if ((ds.Tables["prace"] != null)) {
this.Tables.Add(new praceDataTable(ds.Tables["prace"]));
}
if ((ds.Tables["mistake"] != null)) {
this.Tables.Add(new mistakeDataTable(ds.Tables["mistake"]));
}
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.tableTbstusum = ((TbstusumDataTable)(this.Tables["Tbstusum"]));
if ((this.tableTbstusum != null)) {
this.tableTbstusum.InitVars();
}
this.tablesummain = ((summainDataTable)(this.Tables["summain"]));
if ((this.tablesummain != null)) {
this.tablesummain.InitVars();
}
this.tableprace = ((praceDataTable)(this.Tables["prace"]));
if ((this.tableprace != null)) {
this.tableprace.InitVars();
}
this.tablemistake = ((mistakeDataTable)(this.Tables["mistake"]));
if ((this.tablemistake != null)) {
this.tablemistake.InitVars();
}
this.relationsummain_prace = this.Relations["summain_prace"];
this.relationsummain_mistake = this.Relations["summain_mistake"];
this.relationTbstusum_summain = this.Relations["Tbstusum_summain"];
}
private void InitClass() {
this.DataSetName = "stusum";
this.Prefix = "";
this.Namespace = "http://tempuri.org/stusum.xsd";
this.Locale = new System.Globalization.CultureInfo("en-US");
this.CaseSensitive = false;
this.EnforceConstraints = true;
this.tableTbstusum = new TbstusumDataTable();
this.Tables.Add(this.tableTbstusum);
this.tablesummain = new summainDataTable();
this.Tables.Add(this.tablesummain);
this.tableprace = new praceDataTable();
this.Tables.Add(this.tableprace);
this.tablemistake = new mistakeDataTable();
this.Tables.Add(this.tablemistake);
ForeignKeyConstraint fkc;
fkc = new ForeignKeyConstraint("Tbstusum_summain", new DataColumn[] {
this.tableTbstusum.Tbstusum_IdColumn}, new DataColumn[] {
this.tablesummain.Tbstusum_IdColumn});
this.tablesummain.Constraints.Add(fkc);
fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
fkc.DeleteRule = System.Data.Rule.Cascade;
fkc.UpdateRule = System.Data.Rule.Cascade;
fkc = new ForeignKeyConstraint("summain_prace", new DataColumn[] {
this.tablesummain.summain_IdColumn}, new DataColumn[] {
this.tableprace.summain_IdColumn});
this.tableprace.Constraints.Add(fkc);
fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
fkc.DeleteRule = System.Data.Rule.Cascade;
fkc.UpdateRule = System.Data.Rule.Cascade;
fkc = new ForeignKeyConstraint("summain_mistake", new DataColumn[] {
this.tablesummain.summain_IdColumn}, new DataColumn[] {
this.tablemistake.summain_IdColumn});
this.tablemistake.Constraints.Add(fkc);
fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
fkc.DeleteRule = System.Data.Rule.Cascade;
fkc.UpdateRule = System.Data.Rule.Cascade;
this.relationsummain_prace = new DataRelation("summain_prace", new DataColumn[] {
this.tablesummain.summain_IdColumn}, new DataColumn[] {
this.tableprace.summain_IdColumn}, false);
this.relationsummain_prace.Nested = true;
this.Relations.Add(this.relationsummain_prace);
this.relationsummain_mistake = new DataRelation("summain_mistake", new DataColumn[] {
this.tablesummain.summain_IdColumn}, new DataColumn[] {
this.tablemistake.summain_IdColumn}, false);
this.relationsummain_mistake.Nested = true;
this.Relations.Add(this.relationsummain_mistake);
this.relationTbstusum_summain = new DataRelation("Tbstusum_summain", new DataColumn[] {
this.tableTbstusum.Tbstusum_IdColumn}, new DataColumn[] {
this.tablesummain.Tbstusum_IdColumn}, false);
this.relationTbstusum_summain.Nested = true;
this.Relations.Add(this.relationTbstusum_summain);
}
private bool ShouldSerializeTbstusum() {
return false;
}
private bool ShouldSerializesummain() {
return false;
}
private bool ShouldSerializeprace() {
return false;
}
private bool ShouldSerializemistake() {
return false;
}
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
public delegate void TbstusumRowChangeEventHandler(object sender, TbstusumRowChangeEvent e);
public delegate void summainRowChangeEventHandler(object sender, summainRowChangeEvent e);
public delegate void praceRowChangeEventHandler(object sender, praceRowChangeEvent e);
public delegate void mistakeRowChangeEventHandler(object sender, mistakeRowChangeEvent e);
[System.Diagnostics.DebuggerStepThrough()]
public class TbstusumDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnschooldate;
private DataColumn column_class;
private DataColumn columnTbstusum_Id;
internal TbstusumDataTable() :
base("Tbstusum") {
this.InitClass();
}
internal TbstusumDataTable(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 schooldateColumn {
get {
return this.columnschooldate;
}
}
internal DataColumn _classColumn {
get {
return this.column_class;
}
}
internal DataColumn Tbstusum_IdColumn {
get {
return this.columnTbstusum_Id;
}
}
public TbstusumRow this[int index] {
get {
return ((TbstusumRow)(this.Rows[index]));
}
}
public event TbstusumRowChangeEventHandler TbstusumRowChanged;
public event TbstusumRowChangeEventHandler TbstusumRowChanging;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -