📄 dataset1.cs
字号:
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
BookdetailsDataTable cln = ((BookdetailsDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new BookdetailsDataTable();
}
internal void InitVars() {
this.columnExpr1 = this.Columns["Expr1"];
this.columnExpr2 = this.Columns["Expr2"];
this.columnExpr3 = this.Columns["Expr3"];
this.columnExpr4 = this.Columns["Expr4"];
this.columnExpr5 = this.Columns["Expr5"];
this.column书名 = this.Columns["书名"];
this.column作者1 = this.Columns["作者1"];
this.column作者2 = this.Columns["作者2"];
this.column出版社1 = this.Columns["出版社1"];
this.column出版社2 = this.Columns["出版社2"];
this.column定价 = this.Columns["定价"];
this.column出版日期 = this.Columns["出版日期"];
this.column出版社地址 = this.Columns["出版社地址"];
this.column联系电话 = this.Columns["联系电话"];
}
private void InitClass() {
this.columnExpr1 = new DataColumn("Expr1", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnExpr1);
this.columnExpr2 = new DataColumn("Expr2", typeof(System.Double), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnExpr2);
this.columnExpr3 = new DataColumn("Expr3", typeof(System.DateTime), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnExpr3);
this.columnExpr4 = new DataColumn("Expr4", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnExpr4);
this.columnExpr5 = new DataColumn("Expr5", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnExpr5);
this.column书名 = new DataColumn("书名", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column书名);
this.column作者1 = new DataColumn("作者1", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column作者1);
this.column作者2 = new DataColumn("作者2", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column作者2);
this.column出版社1 = new DataColumn("出版社1", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column出版社1);
this.column出版社2 = new DataColumn("出版社2", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column出版社2);
this.column定价 = new DataColumn("定价", typeof(System.Double), 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联系电话 = 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 BookdetailsRow NewBookdetailsRow() {
return ((BookdetailsRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new BookdetailsRow(builder);
}
protected override System.Type GetRowType() {
return typeof(BookdetailsRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.BookdetailsRowChanged != null)) {
this.BookdetailsRowChanged(this, new BookdetailsRowChangeEvent(((BookdetailsRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.BookdetailsRowChanging != null)) {
this.BookdetailsRowChanging(this, new BookdetailsRowChangeEvent(((BookdetailsRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.BookdetailsRowDeleted != null)) {
this.BookdetailsRowDeleted(this, new BookdetailsRowChangeEvent(((BookdetailsRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.BookdetailsRowDeleting != null)) {
this.BookdetailsRowDeleting(this, new BookdetailsRowChangeEvent(((BookdetailsRow)(e.Row)), e.Action));
}
}
public void RemoveBookdetailsRow(BookdetailsRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class BookdetailsRow : DataRow {
private BookdetailsDataTable tableBookdetails;
internal BookdetailsRow(DataRowBuilder rb) :
base(rb) {
this.tableBookdetails = ((BookdetailsDataTable)(this.Table));
}
public string Expr1 {
get {
try {
return ((string)(this[this.tableBookdetails.Expr1Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.Expr1Column] = value;
}
}
public System.Double Expr2 {
get {
try {
return ((System.Double)(this[this.tableBookdetails.Expr2Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.Expr2Column] = value;
}
}
public System.DateTime Expr3 {
get {
try {
return ((System.DateTime)(this[this.tableBookdetails.Expr3Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.Expr3Column] = value;
}
}
public string Expr4 {
get {
try {
return ((string)(this[this.tableBookdetails.Expr4Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.Expr4Column] = value;
}
}
public string Expr5 {
get {
try {
return ((string)(this[this.tableBookdetails.Expr5Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.Expr5Column] = value;
}
}
public string 书名 {
get {
return ((string)(this[this.tableBookdetails.书名Column]));
}
set {
this[this.tableBookdetails.书名Column] = value;
}
}
public string 作者1 {
get {
try {
return ((string)(this[this.tableBookdetails.作者1Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.作者1Column] = value;
}
}
public string 作者2 {
get {
try {
return ((string)(this[this.tableBookdetails.作者2Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.作者2Column] = value;
}
}
public string 出版社1 {
get {
try {
return ((string)(this[this.tableBookdetails.出版社1Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.出版社1Column] = value;
}
}
public string 出版社2 {
get {
try {
return ((string)(this[this.tableBookdetails.出版社2Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.出版社2Column] = value;
}
}
public System.Double 定价 {
get {
try {
return ((System.Double)(this[this.tableBookdetails.定价Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.定价Column] = value;
}
}
public System.DateTime 出版日期 {
get {
try {
return ((System.DateTime)(this[this.tableBookdetails.出版日期Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.出版日期Column] = value;
}
}
public string 出版社地址 {
get {
try {
return ((string)(this[this.tableBookdetails.出版社地址Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.出版社地址Column] = value;
}
}
public string 联系电话 {
get {
try {
return ((string)(this[this.tableBookdetails.联系电话Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableBookdetails.联系电话Column] = value;
}
}
public bool IsExpr1Null() {
return this.IsNull(this.tableBookdetails.Expr1Column);
}
public void SetExpr1Null() {
this[this.tableBookdetails.Expr1Column] = System.Convert.DBNull;
}
public bool IsExpr2Null() {
return this.IsNull(this.tableBookdetails.Expr2Column);
}
public void SetExpr2Null() {
this[this.tableBookdetails.Expr2Column] = System.Convert.DBNull;
}
public bool IsExpr3Null() {
return this.IsNull(this.tableBookdetails.Expr3Column);
}
public void SetExpr3Null() {
this[this.tableBookdetails.Expr3Column] = System.Convert.DBNull;
}
public bool IsExpr4Null() {
return this.IsNull(this.tableBookdetails.Expr4Column);
}
public void SetExpr4Null() {
this[this.tableBookdetails.Expr4Column] = System.Convert.DBNull;
}
public bool IsExpr5Null() {
return this.IsNull(this.tableBookdetails.Expr5Column);
}
public void SetExpr5Null() {
this[this.tableBookdetails.Expr5Column] = System.Convert.DBNull;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -