📄 dataset9.cs
字号:
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 姓名, 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["密码"];
}
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.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.column教师号}, true));
this.column教师号.AllowDBNull = false;
this.column教师号.Unique = true;
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 {
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 + -