📄 aa.cs
字号:
return rowTABLE1Row;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
TABLE1DataTable cln = ((TABLE1DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new TABLE1DataTable();
}
internal void InitVars() {
this.column书名 = this.Columns["书名"];
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.column定价 = new DataColumn("定价", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column定价);
}
public TABLE1Row NewTABLE1Row() {
return ((TABLE1Row)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new TABLE1Row(builder);
}
protected override System.Type GetRowType() {
return typeof(TABLE1Row);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.TABLE1RowChanged != null)) {
this.TABLE1RowChanged(this, new TABLE1RowChangeEvent(((TABLE1Row)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.TABLE1RowChanging != null)) {
this.TABLE1RowChanging(this, new TABLE1RowChangeEvent(((TABLE1Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.TABLE1RowDeleted != null)) {
this.TABLE1RowDeleted(this, new TABLE1RowChangeEvent(((TABLE1Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.TABLE1RowDeleting != null)) {
this.TABLE1RowDeleting(this, new TABLE1RowChangeEvent(((TABLE1Row)(e.Row)), e.Action));
}
}
public void RemoveTABLE1Row(TABLE1Row row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class TABLE1Row : DataRow {
private TABLE1DataTable tableTABLE1;
internal TABLE1Row(DataRowBuilder rb) :
base(rb) {
this.tableTABLE1 = ((TABLE1DataTable)(this.Table));
}
public string 书名 {
get {
try {
return ((string)(this[this.tableTABLE1.书名Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableTABLE1.书名Column] = value;
}
}
public string 作者 {
get {
try {
return ((string)(this[this.tableTABLE1.作者Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableTABLE1.作者Column] = value;
}
}
public string 出版社 {
get {
try {
return ((string)(this[this.tableTABLE1.出版社Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableTABLE1.出版社Column] = value;
}
}
public string 出版日期 {
get {
try {
return ((string)(this[this.tableTABLE1.出版日期Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableTABLE1.出版日期Column] = value;
}
}
public string 定价 {
get {
try {
return ((string)(this[this.tableTABLE1.定价Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableTABLE1.定价Column] = value;
}
}
public bool Is书名Null() {
return this.IsNull(this.tableTABLE1.书名Column);
}
public void Set书名Null() {
this[this.tableTABLE1.书名Column] = System.Convert.DBNull;
}
public bool Is作者Null() {
return this.IsNull(this.tableTABLE1.作者Column);
}
public void Set作者Null() {
this[this.tableTABLE1.作者Column] = System.Convert.DBNull;
}
public bool Is出版社Null() {
return this.IsNull(this.tableTABLE1.出版社Column);
}
public void Set出版社Null() {
this[this.tableTABLE1.出版社Column] = System.Convert.DBNull;
}
public bool Is出版日期Null() {
return this.IsNull(this.tableTABLE1.出版日期Column);
}
public void Set出版日期Null() {
this[this.tableTABLE1.出版日期Column] = System.Convert.DBNull;
}
public bool Is定价Null() {
return this.IsNull(this.tableTABLE1.定价Column);
}
public void Set定价Null() {
this[this.tableTABLE1.定价Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class TABLE1RowChangeEvent : EventArgs {
private TABLE1Row eventRow;
private DataRowAction eventAction;
public TABLE1RowChangeEvent(TABLE1Row row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public TABLE1Row Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -