📄 dataset1.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(long 细表表号, string 评价内容, string 评价标准和办法, long 二级表号) {
细表Row row细表Row = ((细表Row)(this.NewRow()));
row细表Row.ItemArray = new object[] {
细表表号,
评价内容,
评价标准和办法,
二级表号};
this.Rows.Add(row细表Row);
return row细表Row;
}
public 细表Row FindBy细表表号(long 细表表号) {
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(long), 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(long), 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;
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 long 细表表号 {
get {
return ((long)(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 long 二级表号 {
get {
return ((long)(this[this.table细表.二级表号Column]));
}
set {
this[this.table细表.二级表号Column] = value;
}
}
}
[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 + -