📄 northwinddataset.designer.cs
字号:
this.MinimumCapacity = table.MinimumCapacity;
}
protected SuppliersDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
public System.Data.DataColumn SupplierIDColumn {
get {
return this.columnSupplierID;
}
}
public System.Data.DataColumn CompanyNameColumn {
get {
return this.columnCompanyName;
}
}
public System.Data.DataColumn ContactNameColumn {
get {
return this.columnContactName;
}
}
public System.Data.DataColumn ContactTitleColumn {
get {
return this.columnContactTitle;
}
}
public System.Data.DataColumn AddressColumn {
get {
return this.columnAddress;
}
}
public System.Data.DataColumn CityColumn {
get {
return this.columnCity;
}
}
public System.Data.DataColumn RegionColumn {
get {
return this.columnRegion;
}
}
public System.Data.DataColumn PostalCodeColumn {
get {
return this.columnPostalCode;
}
}
public System.Data.DataColumn CountryColumn {
get {
return this.columnCountry;
}
}
public System.Data.DataColumn PhoneColumn {
get {
return this.columnPhone;
}
}
public System.Data.DataColumn FaxColumn {
get {
return this.columnFax;
}
}
public System.Data.DataColumn HomePageColumn {
get {
return this.columnHomePage;
}
}
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
public SuppliersRow this[int index] {
get {
return ((SuppliersRow)(this.Rows[index]));
}
}
public event SuppliersRowChangeEventHandler SuppliersRowChanged;
public event SuppliersRowChangeEventHandler SuppliersRowChanging;
public event SuppliersRowChangeEventHandler SuppliersRowDeleted;
public event SuppliersRowChangeEventHandler SuppliersRowDeleting;
public void AddSuppliersRow(SuppliersRow row) {
this.Rows.Add(row);
}
public SuppliersRow AddSuppliersRow(string CompanyName, string ContactName, string ContactTitle, string Address, string City, string Region, string PostalCode, string Country, string Phone, string Fax, string HomePage) {
SuppliersRow rowSuppliersRow = ((SuppliersRow)(this.NewRow()));
rowSuppliersRow.ItemArray = new object[] {
null,
CompanyName,
ContactName,
ContactTitle,
Address,
City,
Region,
PostalCode,
Country,
Phone,
Fax,
HomePage};
this.Rows.Add(rowSuppliersRow);
return rowSuppliersRow;
}
public SuppliersRow FindBySupplierID(int SupplierID) {
return ((SuppliersRow)(this.Rows.Find(new object[] {
SupplierID})));
}
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override System.Data.DataTable Clone() {
SuppliersDataTable cln = ((SuppliersDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override System.Data.DataTable CreateInstance() {
return new SuppliersDataTable();
}
internal void InitVars() {
this.columnSupplierID = base.Columns["SupplierID"];
this.columnCompanyName = base.Columns["CompanyName"];
this.columnContactName = base.Columns["ContactName"];
this.columnContactTitle = base.Columns["ContactTitle"];
this.columnAddress = base.Columns["Address"];
this.columnCity = base.Columns["City"];
this.columnRegion = base.Columns["Region"];
this.columnPostalCode = base.Columns["PostalCode"];
this.columnCountry = base.Columns["Country"];
this.columnPhone = base.Columns["Phone"];
this.columnFax = base.Columns["Fax"];
this.columnHomePage = base.Columns["HomePage"];
}
private void InitClass() {
this.columnSupplierID = new System.Data.DataColumn("SupplierID", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnSupplierID);
this.columnCompanyName = new System.Data.DataColumn("CompanyName", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnCompanyName);
this.columnContactName = new System.Data.DataColumn("ContactName", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnContactName);
this.columnContactTitle = new System.Data.DataColumn("ContactTitle", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnContactTitle);
this.columnAddress = new System.Data.DataColumn("Address", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnAddress);
this.columnCity = new System.Data.DataColumn("City", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnCity);
this.columnRegion = new System.Data.DataColumn("Region", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnRegion);
this.columnPostalCode = new System.Data.DataColumn("PostalCode", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnPostalCode);
this.columnCountry = new System.Data.DataColumn("Country", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnCountry);
this.columnPhone = new System.Data.DataColumn("Phone", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnPhone);
this.columnFax = new System.Data.DataColumn("Fax", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnFax);
this.columnHomePage = new System.Data.DataColumn("HomePage", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnHomePage);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.columnSupplierID}, true));
this.columnSupplierID.AutoIncrement = true;
this.columnSupplierID.AllowDBNull = false;
this.columnSupplierID.ReadOnly = true;
this.columnSupplierID.Unique = true;
this.columnCompanyName.AllowDBNull = false;
this.columnCompanyName.MaxLength = 40;
this.columnContactName.MaxLength = 30;
this.columnContactTitle.MaxLength = 30;
this.columnAddress.MaxLength = 60;
this.columnCity.MaxLength = 15;
this.columnRegion.MaxLength = 15;
this.columnPostalCode.MaxLength = 10;
this.columnCountry.MaxLength = 15;
this.columnPhone.MaxLength = 24;
this.columnFax.MaxLength = 24;
this.columnHomePage.MaxLength = 1073741823;
}
public SuppliersRow NewSuppliersRow() {
return ((SuppliersRow)(this.NewRow()));
}
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new SuppliersRow(builder);
}
protected override System.Type GetRowType() {
return typeof(SuppliersRow);
}
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.SuppliersRowChanged != null)) {
this.SuppliersRowChanged(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.SuppliersRowChanging != null)) {
this.SuppliersRowChanging(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.SuppliersRowDeleted != null)) {
this.SuppliersRowDeleted(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.SuppliersRowDeleting != null)) {
this.SuppliersRowDeleting(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
}
}
public void RemoveSuppliersRow(SuppliersRow row) {
this.Rows.Remove(row);
}
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();
NorthwindDataSet ds = new NorthwindDataSet();
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 = "SuppliersDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
public partial class ProductsRow : System.Data.DataRow {
private ProductsDataTable tableProducts;
internal ProductsRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tableProducts = ((ProductsDataTable)(this.Table));
}
public int ProductID {
get {
return ((int)(this[this.tableProducts.ProductIDColumn]));
}
set {
this[this.tableProducts.ProductIDColumn] = value;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -