📄 stuaddedinfo.cs
字号:
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.2300
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
namespace StudentsMIS.WinForm {
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 StuAddedInfo : DataSet {
private awardsDataTable tableawards;
private changesDataTable tablechanges;
private punishmentsDataTable tablepunishments;
private changeTypesDataTable tablechangeTypes;
private punishmentTypesDataTable tablepunishmentTypes;
private DataRelation relationpunishmentTypespunishments;
public StuAddedInfo() {
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
protected StuAddedInfo(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["awards"] != null)) {
this.Tables.Add(new awardsDataTable(ds.Tables["awards"]));
}
if ((ds.Tables["changes"] != null)) {
this.Tables.Add(new changesDataTable(ds.Tables["changes"]));
}
if ((ds.Tables["punishments"] != null)) {
this.Tables.Add(new punishmentsDataTable(ds.Tables["punishments"]));
}
if ((ds.Tables["changeTypes"] != null)) {
this.Tables.Add(new changeTypesDataTable(ds.Tables["changeTypes"]));
}
if ((ds.Tables["punishmentTypes"] != null)) {
this.Tables.Add(new punishmentTypesDataTable(ds.Tables["punishmentTypes"]));
}
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 awardsDataTable awards {
get {
return this.tableawards;
}
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public changesDataTable changes {
get {
return this.tablechanges;
}
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public punishmentsDataTable punishments {
get {
return this.tablepunishments;
}
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public changeTypesDataTable changeTypes {
get {
return this.tablechangeTypes;
}
}
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
public punishmentTypesDataTable punishmentTypes {
get {
return this.tablepunishmentTypes;
}
}
public override DataSet Clone() {
StuAddedInfo cln = ((StuAddedInfo)(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["awards"] != null)) {
this.Tables.Add(new awardsDataTable(ds.Tables["awards"]));
}
if ((ds.Tables["changes"] != null)) {
this.Tables.Add(new changesDataTable(ds.Tables["changes"]));
}
if ((ds.Tables["punishments"] != null)) {
this.Tables.Add(new punishmentsDataTable(ds.Tables["punishments"]));
}
if ((ds.Tables["changeTypes"] != null)) {
this.Tables.Add(new changeTypesDataTable(ds.Tables["changeTypes"]));
}
if ((ds.Tables["punishmentTypes"] != null)) {
this.Tables.Add(new punishmentTypesDataTable(ds.Tables["punishmentTypes"]));
}
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.tableawards = ((awardsDataTable)(this.Tables["awards"]));
if ((this.tableawards != null)) {
this.tableawards.InitVars();
}
this.tablechanges = ((changesDataTable)(this.Tables["changes"]));
if ((this.tablechanges != null)) {
this.tablechanges.InitVars();
}
this.tablepunishments = ((punishmentsDataTable)(this.Tables["punishments"]));
if ((this.tablepunishments != null)) {
this.tablepunishments.InitVars();
}
this.tablechangeTypes = ((changeTypesDataTable)(this.Tables["changeTypes"]));
if ((this.tablechangeTypes != null)) {
this.tablechangeTypes.InitVars();
}
this.tablepunishmentTypes = ((punishmentTypesDataTable)(this.Tables["punishmentTypes"]));
if ((this.tablepunishmentTypes != null)) {
this.tablepunishmentTypes.InitVars();
}
this.relationpunishmentTypespunishments = this.Relations["punishmentTypespunishments"];
}
private void InitClass() {
this.DataSetName = "StuAddedInfo";
this.Prefix = "";
this.Namespace = "http://tempuri.org/StuAddedInfo.xsd";
this.Locale = new System.Globalization.CultureInfo("en-US");
this.CaseSensitive = false;
this.EnforceConstraints = true;
this.tableawards = new awardsDataTable();
this.Tables.Add(this.tableawards);
this.tablechanges = new changesDataTable();
this.Tables.Add(this.tablechanges);
this.tablepunishments = new punishmentsDataTable();
this.Tables.Add(this.tablepunishments);
this.tablechangeTypes = new changeTypesDataTable();
this.Tables.Add(this.tablechangeTypes);
this.tablepunishmentTypes = new punishmentTypesDataTable();
this.Tables.Add(this.tablepunishmentTypes);
ForeignKeyConstraint fkc;
fkc = new ForeignKeyConstraint("changeTypeschanges", new DataColumn[] {
this.tablechangeTypes.changeType_IDColumn}, new DataColumn[] {
this.tablechanges.change_changeTypeColumn});
this.tablechanges.Constraints.Add(fkc);
fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
fkc.DeleteRule = System.Data.Rule.Cascade;
fkc.UpdateRule = System.Data.Rule.Cascade;
fkc = new ForeignKeyConstraint("punishmentTypespunishments", new DataColumn[] {
this.tablepunishmentTypes.punishmentType_IDColumn}, new DataColumn[] {
this.tablepunishments.punishment_typeIDColumn});
this.tablepunishments.Constraints.Add(fkc);
fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
fkc.DeleteRule = System.Data.Rule.Cascade;
fkc.UpdateRule = System.Data.Rule.Cascade;
this.relationpunishmentTypespunishments = new DataRelation("punishmentTypespunishments", new DataColumn[] {
this.tablepunishmentTypes.punishmentType_IDColumn}, new DataColumn[] {
this.tablepunishments.punishment_typeIDColumn}, false);
this.Relations.Add(this.relationpunishmentTypespunishments);
}
private bool ShouldSerializeawards() {
return false;
}
private bool ShouldSerializechanges() {
return false;
}
private bool ShouldSerializepunishments() {
return false;
}
private bool ShouldSerializechangeTypes() {
return false;
}
private bool ShouldSerializepunishmentTypes() {
return false;
}
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
public delegate void awardsRowChangeEventHandler(object sender, awardsRowChangeEvent e);
public delegate void changesRowChangeEventHandler(object sender, changesRowChangeEvent e);
public delegate void punishmentsRowChangeEventHandler(object sender, punishmentsRowChangeEvent e);
public delegate void changeTypesRowChangeEventHandler(object sender, changeTypesRowChangeEvent e);
public delegate void punishmentTypesRowChangeEventHandler(object sender, punishmentTypesRowChangeEvent e);
[System.Diagnostics.DebuggerStepThrough()]
public class awardsDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnaward_ID;
private DataColumn columnaward_studentID;
private DataColumn columnaward_content;
private DataColumn columnaward_reason;
private DataColumn columnaward_date;
internal awardsDataTable() :
base("awards") {
this.InitClass();
}
internal awardsDataTable(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 award_IDColumn {
get {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -