📄 studentmanagedataset1.designer.cs
字号:
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal ScoreDataTable(System.Data.DataTable table) {
this.TableName = 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;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected ScoreDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ClassColumn {
get {
return this.columnClass;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn StudentIDColumn {
get {
return this.columnStudentID;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn CourseColumn {
get {
return this.columnCourse;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ScoreColumn {
get {
return this.columnScore;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn Score1Column {
get {
return this.columnScore1;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ScoreRow this[int index] {
get {
return ((ScoreRow)(this.Rows[index]));
}
}
public event ScoreRowChangeEventHandler ScoreRowChanging;
public event ScoreRowChangeEventHandler ScoreRowChanged;
public event ScoreRowChangeEventHandler ScoreRowDeleting;
public event ScoreRowChangeEventHandler ScoreRowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddScoreRow(ScoreRow row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ScoreRow AddScoreRow(string Class, string StudentID, string Course, short Score, string Score1) {
ScoreRow rowScoreRow = ((ScoreRow)(this.NewRow()));
rowScoreRow.ItemArray = new object[] {
Class,
StudentID,
Course,
Score,
Score1};
this.Rows.Add(rowScoreRow);
return rowScoreRow;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ScoreRow FindByStudentIDCourse(string StudentID, string Course) {
return ((ScoreRow)(this.Rows.Find(new object[] {
StudentID,
Course})));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
ScoreDataTable cln = ((ScoreDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new ScoreDataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnClass = base.Columns["Class"];
this.columnStudentID = base.Columns["StudentID"];
this.columnCourse = base.Columns["Course"];
this.columnScore = base.Columns["Score"];
this.columnScore1 = base.Columns["Score1"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnClass = new System.Data.DataColumn("Class", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnClass);
this.columnStudentID = new System.Data.DataColumn("StudentID", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnStudentID);
this.columnCourse = new System.Data.DataColumn("Course", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnCourse);
this.columnScore = new System.Data.DataColumn("Score", typeof(short), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnScore);
this.columnScore1 = new System.Data.DataColumn("Score1", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnScore1);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.columnStudentID,
this.columnCourse}, true));
this.columnClass.MaxLength = 20;
this.columnStudentID.AllowDBNull = false;
this.columnStudentID.MaxLength = 50;
this.columnCourse.AllowDBNull = false;
this.columnCourse.MaxLength = 50;
this.columnScore.AllowDBNull = false;
this.columnScore1.Caption = "Score";
this.columnScore1.MaxLength = 3;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ScoreRow NewScoreRow() {
return ((ScoreRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new ScoreRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(ScoreRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.ScoreRowChanged != null)) {
this.ScoreRowChanged(this, new ScoreRowChangeEvent(((ScoreRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.ScoreRowChanging != null)) {
this.ScoreRowChanging(this, new ScoreRowChangeEvent(((ScoreRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.ScoreRowDeleted != null)) {
this.ScoreRowDeleted(this, new ScoreRowChangeEvent(((ScoreRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.ScoreRowDeleting != null)) {
this.ScoreRowDeleting(this, new ScoreRowChangeEvent(((ScoreRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveScoreRow(ScoreRow 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();
StudentManageDataSet1 ds = new StudentManageDataSet1();
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 = "ScoreDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public partial class ScoreRow : System.Data.DataRow {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -