📄 mydata2dataset.designer.cs
字号:
public partial class BookDataTable : System.Data.DataTable, System.Collections.IEnumerable {
private System.Data.DataColumn column书籍编号;
private System.Data.DataColumn column书名;
private System.Data.DataColumn column作者;
private System.Data.DataColumn column出版社;
private System.Data.DataColumn column现有数量;
private System.Data.DataColumn column小类;
private System.Data.DataColumn column大类;
private System.Data.DataColumn column内容简介;
private System.Data.DataColumn column入库时间;
private System.Data.DataColumn column图片;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public BookDataTable() {
this.TableName = "Book";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal BookDataTable(System.Data.DataTable table) {
this.TableName = 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;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected BookDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 书籍编号Column {
get {
return this.column书籍编号;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 书名Column {
get {
return this.column书名;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 作者Column {
get {
return this.column作者;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 出版社Column {
get {
return this.column出版社;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 现有数量Column {
get {
return this.column现有数量;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 小类Column {
get {
return this.column小类;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 大类Column {
get {
return this.column大类;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 内容简介Column {
get {
return this.column内容简介;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 入库时间Column {
get {
return this.column入库时间;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn 图片Column {
get {
return this.column图片;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public BookRow this[int index] {
get {
return ((BookRow)(this.Rows[index]));
}
}
public event BookRowChangeEventHandler BookRowChanging;
public event BookRowChangeEventHandler BookRowChanged;
public event BookRowChangeEventHandler BookRowDeleting;
public event BookRowChangeEventHandler BookRowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddBookRow(BookRow row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public BookRow AddBookRow(string 书籍编号, string 书名, string 作者, string 出版社, int 现有数量, string 小类, string 大类, string 内容简介, string 入库时间, byte[] 图片) {
BookRow rowBookRow = ((BookRow)(this.NewRow()));
rowBookRow.ItemArray = new object[] {
书籍编号,
书名,
作者,
出版社,
现有数量,
小类,
大类,
内容简介,
入库时间,
图片};
this.Rows.Add(rowBookRow);
return rowBookRow;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public BookRow FindBy书籍编号(string 书籍编号) {
return ((BookRow)(this.Rows.Find(new object[] {
书籍编号})));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
BookDataTable cln = ((BookDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new BookDataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.column书籍编号 = base.Columns["书籍编号"];
this.column书名 = base.Columns["书名"];
this.column作者 = base.Columns["作者"];
this.column出版社 = base.Columns["出版社"];
this.column现有数量 = base.Columns["现有数量"];
this.column小类 = base.Columns["小类"];
this.column大类 = base.Columns["大类"];
this.column内容简介 = base.Columns["内容简介"];
this.column入库时间 = base.Columns["入库时间"];
this.column图片 = base.Columns["图片"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.column书籍编号 = new System.Data.DataColumn("书籍编号", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column书籍编号);
this.column书名 = new System.Data.DataColumn("书名", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column书名);
this.column作者 = new System.Data.DataColumn("作者", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column作者);
this.column出版社 = new System.Data.DataColumn("出版社", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column出版社);
this.column现有数量 = new System.Data.DataColumn("现有数量", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.column现有数量);
this.column小类 = new System.Data.DataColumn("小类", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column小类);
this.column大类 = new System.Data.DataColumn("大类", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column大类);
this.column内容简介 = new System.Data.DataColumn("内容简介", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column内容简介);
this.column入库时间 = new System.Data.DataColumn("入库时间", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.column入库时间);
this.column图片 = new System.Data.DataColumn("图片", typeof(byte[]), null, System.Data.MappingType.Element);
base.Columns.Add(this.column图片);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.column书籍编号}, true));
this.column书籍编号.AllowDBNull = false;
this.column书籍编号.Unique = true;
this.column书籍编号.MaxLength = 50;
this.column书名.MaxLength = 50;
this.column作者.MaxLength = 50;
this.column出版社.MaxLength = 50;
this.column小类.MaxLength = 50;
this.column大类.MaxLength = 50;
this.column内容简介.MaxLength = 1073741823;
this.column入库时间.MaxLength = 50;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public BookRow NewBookRow() {
return ((BookRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new BookRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(BookRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.BookRowChanged != null)) {
this.BookRowChanged(this, new BookRowChangeEvent(((BookRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.BookRowChanging != null)) {
this.BookRowChanging(this, new BookRowChangeEvent(((BookRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -