📄 dataset8.cs
字号:
}
public event 选课信息表RowChangeEventHandler 选课信息表RowChanged;
public event 选课信息表RowChangeEventHandler 选课信息表RowChanging;
public event 选课信息表RowChangeEventHandler 选课信息表RowDeleted;
public event 选课信息表RowChangeEventHandler 选课信息表RowDeleting;
public void Add选课信息表Row(选课信息表Row row) {
this.Rows.Add(row);
}
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;
}
public 选课信息表Row FindBy序号(string 序号) {
return ((选课信息表Row)(this.Rows.Find(new object[] {
序号})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
选课信息表DataTable cln = ((选课信息表DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new 选课信息表DataTable();
}
internal void InitVars() {
this.column序号 = this.Columns["序号"];
this.column学号 = this.Columns["学号"];
this.column课程编号 = this.Columns["课程编号"];
this.column成绩 = this.Columns["成绩"];
}
private void InitClass() {
this.column序号 = new DataColumn("序号", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column序号);
this.column学号 = new DataColumn("学号", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column学号);
this.column课程编号 = new DataColumn("课程编号", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column课程编号);
this.column成绩 = new DataColumn("成绩", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column成绩);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.column序号}, true));
this.column序号.AllowDBNull = false;
this.column序号.Unique = true;
this.column学号.AllowDBNull = false;
this.column课程编号.AllowDBNull = false;
}
public 选课信息表Row New选课信息表Row() {
return ((选课信息表Row)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new 选课信息表Row(builder);
}
protected override System.Type GetRowType() {
return typeof(选课信息表Row);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.选课信息表RowChanged != null)) {
this.选课信息表RowChanged(this, new 选课信息表RowChangeEvent(((选课信息表Row)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.选课信息表RowChanging != null)) {
this.选课信息表RowChanging(this, new 选课信息表RowChangeEvent(((选课信息表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.选课信息表RowDeleted != null)) {
this.选课信息表RowDeleted(this, new 选课信息表RowChangeEvent(((选课信息表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.选课信息表RowDeleting != null)) {
this.选课信息表RowDeleting(this, new 选课信息表RowChangeEvent(((选课信息表Row)(e.Row)), e.Action));
}
}
public void Remove选课信息表Row(选课信息表Row row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 选课信息表Row : DataRow {
private 选课信息表DataTable table选课信息表;
internal 选课信息表Row(DataRowBuilder rb) :
base(rb) {
this.table选课信息表 = ((选课信息表DataTable)(this.Table));
}
public string 序号 {
get {
return ((string)(this[this.table选课信息表.序号Column]));
}
set {
this[this.table选课信息表.序号Column] = value;
}
}
public string 学号 {
get {
return ((string)(this[this.table选课信息表.学号Column]));
}
set {
this[this.table选课信息表.学号Column] = value;
}
}
public string 课程编号 {
get {
return ((string)(this[this.table选课信息表.课程编号Column]));
}
set {
this[this.table选课信息表.课程编号Column] = value;
}
}
public string 成绩 {
get {
try {
return ((string)(this[this.table选课信息表.成绩Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table选课信息表.成绩Column] = value;
}
}
public bool Is成绩Null() {
return this.IsNull(this.table选课信息表.成绩Column);
}
public void Set成绩Null() {
this[this.table选课信息表.成绩Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 选课信息表RowChangeEvent : EventArgs {
private 选课信息表Row eventRow;
private DataRowAction eventAction;
public 选课信息表RowChangeEvent(选课信息表Row row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public 选课信息表Row Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -