📄 northwinddataset.designer.cs
字号:
protected ProductsDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
public System.Data.DataColumn ProductIDColumn {
get {
return this.columnProductID;
}
}
public System.Data.DataColumn ProductNameColumn {
get {
return this.columnProductName;
}
}
public System.Data.DataColumn SupplierIDColumn {
get {
return this.columnSupplierID;
}
}
public System.Data.DataColumn CategoryIDColumn {
get {
return this.columnCategoryID;
}
}
public System.Data.DataColumn QuantityPerUnitColumn {
get {
return this.columnQuantityPerUnit;
}
}
public System.Data.DataColumn UnitPriceColumn {
get {
return this.columnUnitPrice;
}
}
public System.Data.DataColumn UnitsInStockColumn {
get {
return this.columnUnitsInStock;
}
}
public System.Data.DataColumn UnitsOnOrderColumn {
get {
return this.columnUnitsOnOrder;
}
}
public System.Data.DataColumn ReorderLevelColumn {
get {
return this.columnReorderLevel;
}
}
public System.Data.DataColumn DiscontinuedColumn {
get {
return this.columnDiscontinued;
}
}
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
public ProductsRow this[int index] {
get {
return ((ProductsRow)(this.Rows[index]));
}
}
public event ProductsRowChangeEventHandler ProductsRowChanged;
public event ProductsRowChangeEventHandler ProductsRowChanging;
public event ProductsRowChangeEventHandler ProductsRowDeleted;
public event ProductsRowChangeEventHandler ProductsRowDeleting;
public void AddProductsRow(ProductsRow row) {
this.Rows.Add(row);
}
public ProductsRow AddProductsRow(string ProductName, SuppliersRow parentSuppliersRowByFK_Products_Suppliers, int CategoryID, string QuantityPerUnit, decimal UnitPrice, short UnitsInStock, short UnitsOnOrder, short ReorderLevel, bool Discontinued) {
ProductsRow rowProductsRow = ((ProductsRow)(this.NewRow()));
rowProductsRow.ItemArray = new object[] {
null,
ProductName,
parentSuppliersRowByFK_Products_Suppliers[0],
CategoryID,
QuantityPerUnit,
UnitPrice,
UnitsInStock,
UnitsOnOrder,
ReorderLevel,
Discontinued};
this.Rows.Add(rowProductsRow);
return rowProductsRow;
}
public ProductsRow FindByProductID(int ProductID) {
return ((ProductsRow)(this.Rows.Find(new object[] {
ProductID})));
}
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override System.Data.DataTable Clone() {
ProductsDataTable cln = ((ProductsDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override System.Data.DataTable CreateInstance() {
return new ProductsDataTable();
}
internal void InitVars() {
this.columnProductID = base.Columns["ProductID"];
this.columnProductName = base.Columns["ProductName"];
this.columnSupplierID = base.Columns["SupplierID"];
this.columnCategoryID = base.Columns["CategoryID"];
this.columnQuantityPerUnit = base.Columns["QuantityPerUnit"];
this.columnUnitPrice = base.Columns["UnitPrice"];
this.columnUnitsInStock = base.Columns["UnitsInStock"];
this.columnUnitsOnOrder = base.Columns["UnitsOnOrder"];
this.columnReorderLevel = base.Columns["ReorderLevel"];
this.columnDiscontinued = base.Columns["Discontinued"];
}
private void InitClass() {
this.columnProductID = new System.Data.DataColumn("ProductID", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnProductID);
this.columnProductName = new System.Data.DataColumn("ProductName", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnProductName);
this.columnSupplierID = new System.Data.DataColumn("SupplierID", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnSupplierID);
this.columnCategoryID = new System.Data.DataColumn("CategoryID", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnCategoryID);
this.columnQuantityPerUnit = new System.Data.DataColumn("QuantityPerUnit", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnQuantityPerUnit);
this.columnUnitPrice = new System.Data.DataColumn("UnitPrice", typeof(decimal), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnUnitPrice);
this.columnUnitsInStock = new System.Data.DataColumn("UnitsInStock", typeof(short), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnUnitsInStock);
this.columnUnitsOnOrder = new System.Data.DataColumn("UnitsOnOrder", typeof(short), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnUnitsOnOrder);
this.columnReorderLevel = new System.Data.DataColumn("ReorderLevel", typeof(short), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnReorderLevel);
this.columnDiscontinued = new System.Data.DataColumn("Discontinued", typeof(bool), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnDiscontinued);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.columnProductID}, true));
this.columnProductID.AutoIncrement = true;
this.columnProductID.AllowDBNull = false;
this.columnProductID.ReadOnly = true;
this.columnProductID.Unique = true;
this.columnProductName.AllowDBNull = false;
this.columnProductName.MaxLength = 40;
this.columnQuantityPerUnit.MaxLength = 20;
this.columnDiscontinued.AllowDBNull = false;
}
public ProductsRow NewProductsRow() {
return ((ProductsRow)(this.NewRow()));
}
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new ProductsRow(builder);
}
protected override System.Type GetRowType() {
return typeof(ProductsRow);
}
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.ProductsRowChanged != null)) {
this.ProductsRowChanged(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.ProductsRowChanging != null)) {
this.ProductsRowChanging(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.ProductsRowDeleted != null)) {
this.ProductsRowDeleted(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.ProductsRowDeleting != null)) {
this.ProductsRowDeleting(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
}
}
public void RemoveProductsRow(ProductsRow 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 = "ProductsDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
[System.Serializable()]
[System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class SuppliersDataTable : System.Data.DataTable, System.Collections.IEnumerable {
private System.Data.DataColumn columnSupplierID;
private System.Data.DataColumn columnCompanyName;
private System.Data.DataColumn columnContactName;
private System.Data.DataColumn columnContactTitle;
private System.Data.DataColumn columnAddress;
private System.Data.DataColumn columnCity;
private System.Data.DataColumn columnRegion;
private System.Data.DataColumn columnPostalCode;
private System.Data.DataColumn columnCountry;
private System.Data.DataColumn columnPhone;
private System.Data.DataColumn columnFax;
private System.Data.DataColumn columnHomePage;
public SuppliersDataTable() {
this.TableName = "Suppliers";
this.BeginInit();
this.InitClass();
this.EndInit();
}
internal SuppliersDataTable(System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -