📄 dataset2.cs
字号:
书号,
书名,
借阅时间,
应还时间,
状态};
this.Rows.Add(row读者借阅Row);
return row读者借阅Row;
}
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["应还时间"];
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(System.DateTime), null, System.Data.MappingType.Element);
this.Columns.Add(this.column借阅时间);
this.column应还时间 = new DataColumn("应还时间", typeof(System.DateTime), 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书号.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 {
try {
return ((string)(this[this.table读者借阅.书名Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table读者借阅.书名Column] = value;
}
}
public System.DateTime 借阅时间 {
get {
try {
return ((System.DateTime)(this[this.table读者借阅.借阅时间Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table读者借阅.借阅时间Column] = value;
}
}
public System.DateTime 应还时间 {
get {
try {
return ((System.DateTime)(this[this.table读者借阅.应还时间Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
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;
}
public bool Is借阅时间Null() {
return this.IsNull(this.table读者借阅.借阅时间Column);
}
public void Set借阅时间Null() {
this[this.table读者借阅.借阅时间Column] = System.Convert.DBNull;
}
public bool Is应还时间Null() {
return this.IsNull(this.table读者借阅.应还时间Column);
}
public void Set应还时间Null() {
this[this.table读者借阅.应还时间Column] = System.Convert.DBNull;
}
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 + -