📄 dataset1.cs
字号:
return rowcustomerRow;
}
public customerRow FindBycu_id(string cu_id) {
return ((customerRow)(this.Rows.Find(new object[] {
cu_id})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
customerDataTable cln = ((customerDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new customerDataTable();
}
internal void InitVars() {
this.columncu_id = this.Columns["cu_id"];
this.columncu_name = this.Columns["cu_name"];
this.columncu_sname = this.Columns["cu_sname"];
this.columncu_ceo = this.Columns["cu_ceo"];
this.columncu_address = this.Columns["cu_address"];
this.columncu_post = this.Columns["cu_post"];
this.columncu_linkman = this.Columns["cu_linkman"];
this.columncu_call = this.Columns["cu_call"];
this.columncu_fax = this.Columns["cu_fax"];
this.columncu_mail = this.Columns["cu_mail"];
this.columncu_bank = this.Columns["cu_bank"];
this.columncu_banknum = this.Columns["cu_banknum"];
}
private void InitClass() {
this.columncu_id = new DataColumn("cu_id", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_id);
this.columncu_name = new DataColumn("cu_name", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_name);
this.columncu_sname = new DataColumn("cu_sname", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_sname);
this.columncu_ceo = new DataColumn("cu_ceo", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_ceo);
this.columncu_address = new DataColumn("cu_address", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_address);
this.columncu_post = new DataColumn("cu_post", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_post);
this.columncu_linkman = new DataColumn("cu_linkman", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_linkman);
this.columncu_call = new DataColumn("cu_call", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_call);
this.columncu_fax = new DataColumn("cu_fax", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_fax);
this.columncu_mail = new DataColumn("cu_mail", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_mail);
this.columncu_bank = new DataColumn("cu_bank", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_bank);
this.columncu_banknum = new DataColumn("cu_banknum", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columncu_banknum);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.columncu_id}, true));
this.columncu_id.AllowDBNull = false;
this.columncu_id.Unique = true;
this.columncu_name.AllowDBNull = false;
this.columncu_ceo.AllowDBNull = false;
this.columncu_address.AllowDBNull = false;
this.columncu_post.AllowDBNull = false;
this.columncu_linkman.AllowDBNull = false;
this.columncu_call.AllowDBNull = false;
this.columncu_mail.AllowDBNull = false;
this.columncu_bank.AllowDBNull = false;
this.columncu_banknum.AllowDBNull = false;
}
public customerRow NewcustomerRow() {
return ((customerRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new customerRow(builder);
}
protected override System.Type GetRowType() {
return typeof(customerRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.customerRowChanged != null)) {
this.customerRowChanged(this, new customerRowChangeEvent(((customerRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.customerRowChanging != null)) {
this.customerRowChanging(this, new customerRowChangeEvent(((customerRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.customerRowDeleted != null)) {
this.customerRowDeleted(this, new customerRowChangeEvent(((customerRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.customerRowDeleting != null)) {
this.customerRowDeleting(this, new customerRowChangeEvent(((customerRow)(e.Row)), e.Action));
}
}
public void RemovecustomerRow(customerRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class customerRow : DataRow {
private customerDataTable tablecustomer;
internal customerRow(DataRowBuilder rb) :
base(rb) {
this.tablecustomer = ((customerDataTable)(this.Table));
}
public string cu_id {
get {
return ((string)(this[this.tablecustomer.cu_idColumn]));
}
set {
this[this.tablecustomer.cu_idColumn] = value;
}
}
public string cu_name {
get {
return ((string)(this[this.tablecustomer.cu_nameColumn]));
}
set {
this[this.tablecustomer.cu_nameColumn] = value;
}
}
public string cu_sname {
get {
try {
return ((string)(this[this.tablecustomer.cu_snameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablecustomer.cu_snameColumn] = value;
}
}
public string cu_ceo {
get {
return ((string)(this[this.tablecustomer.cu_ceoColumn]));
}
set {
this[this.tablecustomer.cu_ceoColumn] = value;
}
}
public string cu_address {
get {
return ((string)(this[this.tablecustomer.cu_addressColumn]));
}
set {
this[this.tablecustomer.cu_addressColumn] = value;
}
}
public string cu_post {
get {
return ((string)(this[this.tablecustomer.cu_postColumn]));
}
set {
this[this.tablecustomer.cu_postColumn] = value;
}
}
public string cu_linkman {
get {
return ((string)(this[this.tablecustomer.cu_linkmanColumn]));
}
set {
this[this.tablecustomer.cu_linkmanColumn] = value;
}
}
public string cu_call {
get {
return ((string)(this[this.tablecustomer.cu_callColumn]));
}
set {
this[this.tablecustomer.cu_callColumn] = value;
}
}
public string cu_fax {
get {
try {
return ((string)(this[this.tablecustomer.cu_faxColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tablecustomer.cu_faxColumn] = value;
}
}
public string cu_mail {
get {
return ((string)(this[this.tablecustomer.cu_mailColumn]));
}
set {
this[this.tablecustomer.cu_mailColumn] = value;
}
}
public string cu_bank {
get {
return ((string)(this[this.tablecustomer.cu_bankColumn]));
}
set {
this[this.tablecustomer.cu_bankColumn] = value;
}
}
public string cu_banknum {
get {
return ((string)(this[this.tablecustomer.cu_banknumColumn]));
}
set {
this[this.tablecustomer.cu_banknumColumn] = value;
}
}
public bool Iscu_snameNull() {
return this.IsNull(this.tablecustomer.cu_snameColumn);
}
public void Setcu_snameNull() {
this[this.tablecustomer.cu_snameColumn] = System.Convert.DBNull;
}
public bool Iscu_faxNull() {
return this.IsNull(this.tablecustomer.cu_faxColumn);
}
public void Setcu_faxNull() {
this[this.tablecustomer.cu_faxColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class customerRowChangeEvent : EventArgs {
private customerRow eventRow;
private DataRowAction eventAction;
public customerRowChangeEvent(customerRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public customerRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -