📄 dsord_view.cs
字号:
}
internal void InitVars() {
this.columnBookAttribute = this.Columns["BookAttribute"];
this.columnStorage = this.Columns["Storage"];
this.columnInfoID = this.Columns["InfoID"];
this.columnBookName = this.Columns["BookName"];
this.columnAuthor = this.Columns["Author"];
this.columnPrice = this.Columns["Price"];
this.columnPublish = this.Columns["Publish"];
this.columnBookMark = this.Columns["BookMark"];
this.columnPic = this.Columns["Pic"];
this.columnAttribute = this.Columns["Attribute"];
this.columnID = this.Columns["ID"];
this.columnExpr1 = this.Columns["Expr1"];
}
private void InitClass() {
this.columnBookAttribute = new DataColumn("BookAttribute", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnBookAttribute);
this.columnStorage = new DataColumn("Storage", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnStorage);
this.columnInfoID = new DataColumn("InfoID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnInfoID);
this.columnBookName = new DataColumn("BookName", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnBookName);
this.columnAuthor = new DataColumn("Author", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnAuthor);
this.columnPrice = new DataColumn("Price", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnPrice);
this.columnPublish = new DataColumn("Publish", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnPublish);
this.columnBookMark = new DataColumn("BookMark", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnBookMark);
this.columnPic = new DataColumn("Pic", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnPic);
this.columnAttribute = new DataColumn("Attribute", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnAttribute);
this.columnID = new DataColumn("ID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnID);
this.columnExpr1 = new DataColumn("Expr1", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnExpr1);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.columnInfoID,
this.columnID,
this.columnExpr1}, true));
this.columnStorage.AllowDBNull = false;
this.columnInfoID.AutoIncrement = true;
this.columnInfoID.AllowDBNull = false;
this.columnInfoID.ReadOnly = true;
this.columnBookName.AllowDBNull = false;
this.columnAuthor.AllowDBNull = false;
this.columnAttribute.AllowDBNull = false;
this.columnID.AutoIncrement = true;
this.columnID.AllowDBNull = false;
this.columnID.ReadOnly = true;
this.columnExpr1.AutoIncrement = true;
this.columnExpr1.AllowDBNull = false;
this.columnExpr1.ReadOnly = true;
}
public tblBookAttributeRow NewtblBookAttributeRow() {
return ((tblBookAttributeRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new tblBookAttributeRow(builder);
}
protected override System.Type GetRowType() {
return typeof(tblBookAttributeRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.tblBookAttributeRowChanged != null)) {
this.tblBookAttributeRowChanged(this, new tblBookAttributeRowChangeEvent(((tblBookAttributeRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.tblBookAttributeRowChanging != null)) {
this.tblBookAttributeRowChanging(this, new tblBookAttributeRowChangeEvent(((tblBookAttributeRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.tblBookAttributeRowDeleted != null)) {
this.tblBookAttributeRowDeleted(this, new tblBookAttributeRowChangeEvent(((tblBookAttributeRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.tblBookAttributeRowDeleting != null)) {
this.tblBookAttributeRowDeleting(this, new tblBookAttributeRowChangeEvent(((tblBookAttributeRow)(e.Row)), e.Action));
}
}
public void RemovetblBookAttributeRow(tblBookAttributeRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class tblBookAttributeRow : DataRow {
private tblBookAttributeDataTable tabletblBookAttribute;
internal tblBookAttributeRow(DataRowBuilder rb) :
base(rb) {
this.tabletblBookAttribute = ((tblBookAttributeDataTable)(this.Table));
}
public string BookAttribute {
get {
try {
return ((string)(this[this.tabletblBookAttribute.BookAttributeColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tabletblBookAttribute.BookAttributeColumn] = value;
}
}
public int Storage {
get {
return ((int)(this[this.tabletblBookAttribute.StorageColumn]));
}
set {
this[this.tabletblBookAttribute.StorageColumn] = value;
}
}
public int InfoID {
get {
return ((int)(this[this.tabletblBookAttribute.InfoIDColumn]));
}
set {
this[this.tabletblBookAttribute.InfoIDColumn] = value;
}
}
public string BookName {
get {
return ((string)(this[this.tabletblBookAttribute.BookNameColumn]));
}
set {
this[this.tabletblBookAttribute.BookNameColumn] = value;
}
}
public string Author {
get {
return ((string)(this[this.tabletblBookAttribute.AuthorColumn]));
}
set {
this[this.tabletblBookAttribute.AuthorColumn] = value;
}
}
public string Price {
get {
try {
return ((string)(this[this.tabletblBookAttribute.PriceColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tabletblBookAttribute.PriceColumn] = value;
}
}
public string Publish {
get {
try {
return ((string)(this[this.tabletblBookAttribute.PublishColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tabletblBookAttribute.PublishColumn] = value;
}
}
public string BookMark {
get {
try {
return ((string)(this[this.tabletblBookAttribute.BookMarkColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tabletblBookAttribute.BookMarkColumn] = value;
}
}
public string Pic {
get {
try {
return ((string)(this[this.tabletblBookAttribute.PicColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tabletblBookAttribute.PicColumn] = value;
}
}
public int Attribute {
get {
return ((int)(this[this.tabletblBookAttribute.AttributeColumn]));
}
set {
this[this.tabletblBookAttribute.AttributeColumn] = value;
}
}
public int ID {
get {
return ((int)(this[this.tabletblBookAttribute.IDColumn]));
}
set {
this[this.tabletblBookAttribute.IDColumn] = value;
}
}
public int Expr1 {
get {
return ((int)(this[this.tabletblBookAttribute.Expr1Column]));
}
set {
this[this.tabletblBookAttribute.Expr1Column] = value;
}
}
public bool IsBookAttributeNull() {
return this.IsNull(this.tabletblBookAttribute.BookAttributeColumn);
}
public void SetBookAttributeNull() {
this[this.tabletblBookAttribute.BookAttributeColumn] = System.Convert.DBNull;
}
public bool IsPriceNull() {
return this.IsNull(this.tabletblBookAttribute.PriceColumn);
}
public void SetPriceNull() {
this[this.tabletblBookAttribute.PriceColumn] = System.Convert.DBNull;
}
public bool IsPublishNull() {
return this.IsNull(this.tabletblBookAttribute.PublishColumn);
}
public void SetPublishNull() {
this[this.tabletblBookAttribute.PublishColumn] = System.Convert.DBNull;
}
public bool IsBookMarkNull() {
return this.IsNull(this.tabletblBookAttribute.BookMarkColumn);
}
public void SetBookMarkNull() {
this[this.tabletblBookAttribute.BookMarkColumn] = System.Convert.DBNull;
}
public bool IsPicNull() {
return this.IsNull(this.tabletblBookAttribute.PicColumn);
}
public void SetPicNull() {
this[this.tabletblBookAttribute.PicColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class tblBookAttributeRowChangeEvent : EventArgs {
private tblBookAttributeRow eventRow;
private DataRowAction eventAction;
public tblBookAttributeRowChangeEvent(tblBookAttributeRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public tblBookAttributeRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -