📄 northwinddataset.designer.cs
字号:
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn RegionColumn {
get {
return this.columnRegion;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Postal_CodeColumn {
get {
return this.columnPostal_Code;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn CountryColumn {
get {
return this.columnCountry;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn PhoneColumn {
get {
return this.columnPhone;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn FaxColumn {
get {
return this.columnFax;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomersRow this[int index] {
get {
return ((CustomersRow)(this.Rows[index]));
}
}
public event CustomersRowChangeEventHandler CustomersRowChanging;
public event CustomersRowChangeEventHandler CustomersRowChanged;
public event CustomersRowChangeEventHandler CustomersRowDeleting;
public event CustomersRowChangeEventHandler CustomersRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddCustomersRow(CustomersRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomersRow AddCustomersRow(string Customer_ID, string Company_Name, string Contact_Name, string Contact_Title, string Address, string City, string Region, string Postal_Code, string Country, string Phone, string Fax) {
CustomersRow rowCustomersRow = ((CustomersRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
Customer_ID,
Company_Name,
Contact_Name,
Contact_Title,
Address,
City,
Region,
Postal_Code,
Country,
Phone,
Fax};
rowCustomersRow.ItemArray = columnValuesArray;
this.Rows.Add(rowCustomersRow);
return rowCustomersRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomersRow FindByCustomer_ID(string Customer_ID) {
return ((CustomersRow)(this.Rows.Find(new object[] {
Customer_ID})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override global::System.Data.DataTable Clone() {
CustomersDataTable cln = ((CustomersDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataTable CreateInstance() {
return new CustomersDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnCustomer_ID = base.Columns["Customer ID"];
this.columnCompany_Name = base.Columns["Company Name"];
this.columnContact_Name = base.Columns["Contact Name"];
this.columnContact_Title = base.Columns["Contact Title"];
this.columnAddress = base.Columns["Address"];
this.columnCity = base.Columns["City"];
this.columnRegion = base.Columns["Region"];
this.columnPostal_Code = base.Columns["Postal Code"];
this.columnCountry = base.Columns["Country"];
this.columnPhone = base.Columns["Phone"];
this.columnFax = base.Columns["Fax"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnCustomer_ID = new global::System.Data.DataColumn("Customer ID", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCustomer_ID);
this.columnCompany_Name = new global::System.Data.DataColumn("Company Name", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCompany_Name);
this.columnContact_Name = new global::System.Data.DataColumn("Contact Name", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnContact_Name);
this.columnContact_Title = new global::System.Data.DataColumn("Contact Title", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnContact_Title);
this.columnAddress = new global::System.Data.DataColumn("Address", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnAddress);
this.columnCity = new global::System.Data.DataColumn("City", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCity);
this.columnRegion = new global::System.Data.DataColumn("Region", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnRegion);
this.columnPostal_Code = new global::System.Data.DataColumn("Postal Code", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnPostal_Code);
this.columnCountry = new global::System.Data.DataColumn("Country", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCountry);
this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnPhone);
this.columnFax = new global::System.Data.DataColumn("Fax", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnFax);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnCustomer_ID}, true));
this.columnCustomer_ID.AllowDBNull = false;
this.columnCustomer_ID.Unique = true;
this.columnCustomer_ID.MaxLength = 5;
this.columnCompany_Name.AllowDBNull = false;
this.columnCompany_Name.MaxLength = 40;
this.columnContact_Name.MaxLength = 30;
this.columnContact_Title.MaxLength = 30;
this.columnAddress.MaxLength = 60;
this.columnCity.MaxLength = 15;
this.columnRegion.MaxLength = 15;
this.columnPostal_Code.MaxLength = 10;
this.columnCountry.MaxLength = 15;
this.columnPhone.MaxLength = 24;
this.columnFax.MaxLength = 24;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomersRow NewCustomersRow() {
return ((CustomersRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new CustomersRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Type GetRowType() {
return typeof(CustomersRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.CustomersRowChanged != null)) {
this.CustomersRowChanged(this, new CustomersRowChangeEvent(((CustomersRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.CustomersRowChanging != null)) {
this.CustomersRowChanging(this, new CustomersRowChangeEvent(((CustomersRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.CustomersRowDeleted != null)) {
this.CustomersRowDeleted(this, new CustomersRowChangeEvent(((CustomersRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.CustomersRowDeleting != null)) {
this.CustomersRowDeleting(this, new CustomersRowChangeEvent(((CustomersRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveCustomersRow(CustomersRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
NorthwindDataSet ds = new NorthwindDataSet();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "CustomersDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -