📄 dataset1.cs
字号:
public bool Is作者1Null() {
return this.IsNull(this.tableBookdetails.作者1Column);
}
public void Set作者1Null() {
this[this.tableBookdetails.作者1Column] = System.Convert.DBNull;
}
public bool Is作者2Null() {
return this.IsNull(this.tableBookdetails.作者2Column);
}
public void Set作者2Null() {
this[this.tableBookdetails.作者2Column] = System.Convert.DBNull;
}
public bool Is出版社1Null() {
return this.IsNull(this.tableBookdetails.出版社1Column);
}
public void Set出版社1Null() {
this[this.tableBookdetails.出版社1Column] = System.Convert.DBNull;
}
public bool Is出版社2Null() {
return this.IsNull(this.tableBookdetails.出版社2Column);
}
public void Set出版社2Null() {
this[this.tableBookdetails.出版社2Column] = System.Convert.DBNull;
}
public bool Is定价Null() {
return this.IsNull(this.tableBookdetails.定价Column);
}
public void Set定价Null() {
this[this.tableBookdetails.定价Column] = System.Convert.DBNull;
}
public bool Is出版日期Null() {
return this.IsNull(this.tableBookdetails.出版日期Column);
}
public void Set出版日期Null() {
this[this.tableBookdetails.出版日期Column] = System.Convert.DBNull;
}
public bool Is出版社地址Null() {
return this.IsNull(this.tableBookdetails.出版社地址Column);
}
public void Set出版社地址Null() {
this[this.tableBookdetails.出版社地址Column] = System.Convert.DBNull;
}
public bool Is联系电话Null() {
return this.IsNull(this.tableBookdetails.联系电话Column);
}
public void Set联系电话Null() {
this[this.tableBookdetails.联系电话Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class BookdetailsRowChangeEvent : EventArgs {
private BookdetailsRow eventRow;
private DataRowAction eventAction;
public BookdetailsRowChangeEvent(BookdetailsRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public BookdetailsRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class BooksDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn column序列号;
private DataColumn column书名;
private DataColumn column借阅状态;
internal BooksDataTable() :
base("Books") {
this.InitClass();
}
internal BooksDataTable(DataTable table) :
base(table.TableName) {
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
this.DisplayExpression = table.DisplayExpression;
}
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
internal DataColumn 序列号Column {
get {
return this.column序列号;
}
}
internal DataColumn 书名Column {
get {
return this.column书名;
}
}
internal DataColumn 借阅状态Column {
get {
return this.column借阅状态;
}
}
public BooksRow this[int index] {
get {
return ((BooksRow)(this.Rows[index]));
}
}
public event BooksRowChangeEventHandler BooksRowChanged;
public event BooksRowChangeEventHandler BooksRowChanging;
public event BooksRowChangeEventHandler BooksRowDeleted;
public event BooksRowChangeEventHandler BooksRowDeleting;
public void AddBooksRow(BooksRow row) {
this.Rows.Add(row);
}
public BooksRow AddBooksRow(string 序列号, string 书名, string 借阅状态) {
BooksRow rowBooksRow = ((BooksRow)(this.NewRow()));
rowBooksRow.ItemArray = new object[] {
序列号,
书名,
借阅状态};
this.Rows.Add(rowBooksRow);
return rowBooksRow;
}
public BooksRow FindBy序列号(string 序列号) {
return ((BooksRow)(this.Rows.Find(new object[] {
序列号})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
BooksDataTable cln = ((BooksDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new BooksDataTable();
}
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;
}
public BooksRow NewBooksRow() {
return ((BooksRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new BooksRow(builder);
}
protected override System.Type GetRowType() {
return typeof(BooksRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.BooksRowChanged != null)) {
this.BooksRowChanged(this, new BooksRowChangeEvent(((BooksRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.BooksRowChanging != null)) {
this.BooksRowChanging(this, new BooksRowChangeEvent(((BooksRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.BooksRowDeleted != null)) {
this.BooksRowDeleted(this, new BooksRowChangeEvent(((BooksRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.BooksRowDeleting != null)) {
this.BooksRowDeleting(this, new BooksRowChangeEvent(((BooksRow)(e.Row)), e.Action));
}
}
public void RemoveBooksRow(BooksRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class BooksRow : DataRow {
private BooksDataTable tableBooks;
internal BooksRow(DataRowBuilder rb) :
base(rb) {
this.tableBooks = ((BooksDataTable)(this.Table));
}
public string 序列号 {
get {
return ((string)(this[this.tableBooks.序列号Column]));
}
set {
this[this.tableBooks.序列号Column] = value;
}
}
public string 书名 {
get {
try {
return ((string)(this[this.tableBooks.书名Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBooks.书名Column] = value;
}
}
public string 借阅状态 {
get {
try {
return ((string)(this[this.tableBooks.借阅状态Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBooks.借阅状态Column] = value;
}
}
public bool Is书名Null() {
return this.IsNull(this.tableBooks.书名Column);
}
public void Set书名Null() {
this[this.tableBooks.书名Column] = System.Convert.DBNull;
}
public bool Is借阅状态Null() {
return this.IsNull(this.tableBooks.借阅状态Column);
}
public void Set借阅状态Null() {
this[this.tableBooks.借阅状态Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class BooksRowChangeEvent : EventArgs {
private BooksRow eventRow;
private DataRowAction eventAction;
public BooksRowChangeEvent(BooksRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public BooksRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -