📄 northwinddataset.designer.cs
字号:
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn DiscontinuedColumn {
get {
return this.columnDiscontinued;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductsRow this[int index] {
get {
return ((ProductsRow)(this.Rows[index]));
}
}
public event ProductsRowChangeEventHandler ProductsRowChanging;
public event ProductsRowChangeEventHandler ProductsRowChanged;
public event ProductsRowChangeEventHandler ProductsRowDeleting;
public event ProductsRowChangeEventHandler ProductsRowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddProductsRow(ProductsRow row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
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;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductsRow FindByProductID(int ProductID) {
return ((ProductsRow)(this.Rows.Find(new object[] {
ProductID})));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
ProductsDataTable cln = ((ProductsDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new ProductsDataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
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"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
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;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductsRow NewProductsRow() {
return ((ProductsRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new ProductsRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(ProductsRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
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));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
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));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
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));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
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));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveProductsRow(ProductsRow 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();
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.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public partial class NumProductsTableRow : System.Data.DataRow {
private NumProductsTableDataTable tableNumProductsTable;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal NumProductsTableRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tableNumProductsTable = ((NumProductsTableDataTable)(this.Table));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int NumProducts {
get {
try {
return ((int)(this[this.tableNumProductsTable.NumProductsColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'NumProducts\' in table \'NumProductsTable\' is DBNull.", e);
}
}
set {
this[this.tableNumProductsTable.NumProductsColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsNumProductsNull() {
return this.IsNull(this.tableNumProductsTable.NumProductsColumn);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetNumProductsNull() {
this[this.tableNumProductsTable.NumProductsColumn] = System.Convert.DBNull;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public partial class SuppliersRow : System.Data.DataRow {
private SuppliersDataTable tableSuppliers;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal SuppliersRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tableSuppliers = ((SuppliersDataTable)(this.Table));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int SupplierID {
get {
return ((int)(this[this.tableSuppliers.SupplierIDColumn]));
}
set {
this[this.tableSuppliers.SupplierIDColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string CompanyName {
get {
return ((string)(this[this.tableSuppliers.CompanyNameColumn]));
}
set {
this[this.tableSuppliers.CompanyNameColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductsRow[] GetProductsRows() {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -