📄 dataset2.cs
字号:
}
public 实验指导老师Row this[int index] {
get {
return ((实验指导老师Row)(this.Rows[index]));
}
}
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 指导老师姓名) {
实验指导老师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["指导老师姓名"];
}
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.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.column指导老师编号}, true));
this.column指导老师编号.AllowDBNull = false;
this.column指导老师编号.Unique = true;
}
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 {
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 + -