📄 customerdataset.designer.cs
字号:
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public tblCustomerRow this[int index] {
get {
return ((tblCustomerRow)(this.Rows[index]));
}
}
public event tblCustomerRowChangeEventHandler tblCustomerRowChanging;
public event tblCustomerRowChangeEventHandler tblCustomerRowChanged;
public event tblCustomerRowChangeEventHandler tblCustomerRowDeleting;
public event tblCustomerRowChangeEventHandler tblCustomerRowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddtblCustomerRow(tblCustomerRow row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public tblCustomerRow AddtblCustomerRow(string CarNo, string Name, string Address, string Make) {
tblCustomerRow rowtblCustomerRow = ((tblCustomerRow)(this.NewRow()));
rowtblCustomerRow.ItemArray = new object[] {
CarNo,
Name,
Address,
Make};
this.Rows.Add(rowtblCustomerRow);
return rowtblCustomerRow;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public tblCustomerRow FindByCarNo(string CarNo) {
return ((tblCustomerRow)(this.Rows.Find(new object[] {
CarNo})));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
tblCustomerDataTable cln = ((tblCustomerDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new tblCustomerDataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnCarNo = base.Columns["CarNo"];
this.columnName = base.Columns["Name"];
this.columnAddress = base.Columns["Address"];
this.columnMake = base.Columns["Make"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnCarNo = new System.Data.DataColumn("CarNo", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnCarNo);
this.columnName = new System.Data.DataColumn("Name", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnName);
this.columnAddress = new System.Data.DataColumn("Address", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnAddress);
this.columnMake = new System.Data.DataColumn("Make", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnMake);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.columnCarNo}, true));
this.columnCarNo.AllowDBNull = false;
this.columnCarNo.Unique = true;
this.columnCarNo.MaxLength = 15;
this.columnName.MaxLength = 255;
this.columnAddress.MaxLength = 255;
this.columnMake.MaxLength = 50;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public tblCustomerRow NewtblCustomerRow() {
return ((tblCustomerRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new tblCustomerRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(tblCustomerRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.tblCustomerRowChanged != null)) {
this.tblCustomerRowChanged(this, new tblCustomerRowChangeEvent(((tblCustomerRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.tblCustomerRowChanging != null)) {
this.tblCustomerRowChanging(this, new tblCustomerRowChangeEvent(((tblCustomerRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.tblCustomerRowDeleted != null)) {
this.tblCustomerRowDeleted(this, new tblCustomerRowChangeEvent(((tblCustomerRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.tblCustomerRowDeleting != null)) {
this.tblCustomerRowDeleting(this, new tblCustomerRowChangeEvent(((tblCustomerRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemovetblCustomerRow(tblCustomerRow row) {
this.Rows.Remove(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
customerDataSet ds = new customerDataSet();
xs.Add(ds.GetSchemaSerializable());
System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "tblCustomerDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public partial class tblCustomerRow : System.Data.DataRow {
private tblCustomerDataTable tabletblCustomer;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal tblCustomerRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tabletblCustomer = ((tblCustomerDataTable)(this.Table));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string CarNo {
get {
return ((string)(this[this.tabletblCustomer.CarNoColumn]));
}
set {
this[this.tabletblCustomer.CarNoColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Name {
get {
try {
return ((string)(this[this.tabletblCustomer.NameColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“tblCustomer”中列“Name”的值为 DBNull。", e);
}
}
set {
this[this.tabletblCustomer.NameColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Address {
get {
try {
return ((string)(this[this.tabletblCustomer.AddressColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“tblCustomer”中列“Address”的值为 DBNull。", e);
}
}
set {
this[this.tabletblCustomer.AddressColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Make {
get {
try {
return ((string)(this[this.tabletblCustomer.MakeColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“tblCustomer”中列“Make”的值为 DBNull。", e);
}
}
set {
this[this.tabletblCustomer.MakeColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsNameNull() {
return this.IsNull(this.tabletblCustomer.NameColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetNameNull() {
this[this.tabletblCustomer.NameColumn] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsAddressNull() {
return this.IsNull(this.tabletblCustomer.AddressColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetAddressNull() {
this[this.tabletblCustomer.AddressColumn] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsMakeNull() {
return this.IsNull(this.tabletblCustomer.MakeColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetMakeNull() {
this[this.tabletblCustomer.MakeColumn] = System.Convert.DBNull;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public class tblCustomerRowChangeEvent : System.EventArgs {
private tblCustomerRow eventRow;
private System.Data.DataRowAction eventAction;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public tblCustomerRowChangeEvent(tblCustomerRow row, System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public tblCustomerRow Row {
get {
return this.eventRow;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
#pragma warning restore 1591
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -