📄 教务系统dataset.designer.cs
字号:
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 学生Row this[int index] {
get {
return ((学生Row)(this.Rows[index]));
}
}
public event 学生RowChangeEventHandler 学生RowChanging;
public event 学生RowChangeEventHandler 学生RowChanged;
public event 学生RowChangeEventHandler 学生RowDeleting;
public event 学生RowChangeEventHandler 学生RowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void Add学生Row(学生Row row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 学生Row Add学生Row(string 学号, string 姓名, string 专业, string 宿舍) {
学生Row row学生Row = ((学生Row)(this.NewRow()));
row学生Row.ItemArray = new object[] {
学号,
姓名,
专业,
宿舍};
this.Rows.Add(row学生Row);
return row学生Row;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 学生Row FindBy学号(string 学号) {
return ((学生Row)(this.Rows.Find(new object[] {
学号})));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
学生DataTable cln = ((学生DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new 学生DataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.column学号 = base.Columns["学号"];
this.column姓名 = base.Columns["姓名"];
this.column专业 = base.Columns["专业"];
this.column宿舍 = base.Columns["宿舍"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.column学号 = new System.Data.DataColumn("学号", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column学号);
this.column姓名 = new System.Data.DataColumn("姓名", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column姓名);
this.column专业 = new System.Data.DataColumn("专业", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column专业);
this.column宿舍 = new System.Data.DataColumn("宿舍", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column宿舍);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.column学号}, true));
this.column学号.AllowDBNull = false;
this.column学号.Unique = true;
this.column学号.MaxLength = 10;
this.column姓名.AllowDBNull = false;
this.column姓名.MaxLength = 10;
this.column专业.AllowDBNull = false;
this.column专业.MaxLength = 10;
this.column宿舍.AllowDBNull = false;
this.column宿舍.MaxLength = 10;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 学生Row New学生Row() {
return ((学生Row)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new 学生Row(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(学生Row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.学生RowChanged != null)) {
this.学生RowChanged(this, new 学生RowChangeEvent(((学生Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.学生RowChanging != null)) {
this.学生RowChanging(this, new 学生RowChangeEvent(((学生Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.学生RowDeleted != null)) {
this.学生RowDeleted(this, new 学生RowChangeEvent(((学生Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.学生RowDeleting != null)) {
this.学生RowDeleting(this, new 学生RowChangeEvent(((学生Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void Remove学生Row(学生Row row) {
this.Rows.Remove(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
教务系统DataSet ds = new 教务系统DataSet();
xs.Add(ds.GetSchemaSerializable());
System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "学生DataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public partial class 学生Row : System.Data.DataRow {
private 学生DataTable table学生;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal 学生Row(System.Data.DataRowBuilder rb) :
base(rb) {
this.table学生 = ((学生DataTable)(this.Table));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string 学号 {
get {
return ((string)(this[this.table学生.学号Column]));
}
set {
this[this.table学生.学号Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string 姓名 {
get {
return ((string)(this[this.table学生.姓名Column]));
}
set {
this[this.table学生.姓名Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string 专业 {
get {
return ((string)(this[this.table学生.专业Column]));
}
set {
this[this.table学生.专业Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string 宿舍 {
get {
return ((string)(this[this.table学生.宿舍Column]));
}
set {
this[this.table学生.宿舍Column] = value;
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public class 学生RowChangeEvent : System.EventArgs {
private 学生Row eventRow;
private System.Data.DataRowAction eventAction;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 学生RowChangeEvent(学生Row row, System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 学生Row Row {
get {
return this.eventRow;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace 教务系统.教务系统DataSetTableAdapters {
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.ComponentModel.ToolboxItem(true)]
[System.ComponentModel.DataObjectAttribute(true)]
[System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class 学生TableAdapter : System.ComponentModel.Component {
private System.Data.SqlClient.SqlDataAdapter _adapter;
private System.Data.SqlClient.SqlConnection _connection;
private System.Data.SqlClient.SqlCommand[] _commandCollection;
private bool _clearBeforeFill;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 学生TableAdapter() {
this.ClearBeforeFill = true;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private System.Data.SqlClient.SqlDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -