📄 northwinddataset.designer.cs
字号:
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal ProductsDataTable(global::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;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Product_IDColumn {
get {
return this.columnProduct_ID;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Supplier_IDColumn {
get {
return this.columnSupplier_ID;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Category_IDColumn {
get {
return this.columnCategory_ID;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Product_NameColumn {
get {
return this.columnProduct_Name;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn English_NameColumn {
get {
return this.columnEnglish_Name;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Quantity_Per_UnitColumn {
get {
return this.columnQuantity_Per_Unit;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Unit_PriceColumn {
get {
return this.columnUnit_Price;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Units_In_StockColumn {
get {
return this.columnUnits_In_Stock;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Units_On_OrderColumn {
get {
return this.columnUnits_On_Order;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Reorder_LevelColumn {
get {
return this.columnReorder_Level;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn DiscontinuedColumn {
get {
return this.columnDiscontinued;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int Count {
get {
return this.Rows.Count;
}
}
[global::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;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddProductsRow(ProductsRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductsRow AddProductsRow(int Supplier_ID, CategoriesRow parentCategoriesRowByProducts_FK01, string Product_Name, string English_Name, string Quantity_Per_Unit, decimal Unit_Price, short Units_In_Stock, short Units_On_Order, short Reorder_Level, bool Discontinued) {
ProductsRow rowProductsRow = ((ProductsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
Supplier_ID,
null,
Product_Name,
English_Name,
Quantity_Per_Unit,
Unit_Price,
Units_In_Stock,
Units_On_Order,
Reorder_Level,
Discontinued};
if ((parentCategoriesRowByProducts_FK01 != null)) {
columnValuesArray[2] = parentCategoriesRowByProducts_FK01[0];
}
rowProductsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProductsRow);
return rowProductsRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductsRow FindByProduct_ID(int Product_ID) {
return ((ProductsRow)(this.Rows.Find(new object[] {
Product_ID})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override global::System.Data.DataTable Clone() {
ProductsDataTable cln = ((ProductsDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataTable CreateInstance() {
return new ProductsDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnProduct_ID = base.Columns["Product ID"];
this.columnSupplier_ID = base.Columns["Supplier ID"];
this.columnCategory_ID = base.Columns["Category ID"];
this.columnProduct_Name = base.Columns["Product Name"];
this.columnEnglish_Name = base.Columns["English Name"];
this.columnQuantity_Per_Unit = base.Columns["Quantity Per Unit"];
this.columnUnit_Price = base.Columns["Unit Price"];
this.columnUnits_In_Stock = base.Columns["Units In Stock"];
this.columnUnits_On_Order = base.Columns["Units On Order"];
this.columnReorder_Level = base.Columns["Reorder Level"];
this.columnDiscontinued = base.Columns["Discontinued"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnProduct_ID = new global::System.Data.DataColumn("Product ID", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnProduct_ID);
this.columnSupplier_ID = new global::System.Data.DataColumn("Supplier ID", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnSupplier_ID);
this.columnCategory_ID = new global::System.Data.DataColumn("Category ID", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCategory_ID);
this.columnProduct_Name = new global::System.Data.DataColumn("Product Name", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnProduct_Name);
this.columnEnglish_Name = new global::System.Data.DataColumn("English Name", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnEnglish_Name);
this.columnQuantity_Per_Unit = new global::System.Data.DataColumn("Quantity Per Unit", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnQuantity_Per_Unit);
this.columnUnit_Price = new global::System.Data.DataColumn("Unit Price", typeof(decimal), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnUnit_Price);
this.columnUnits_In_Stock = new global::System.Data.DataColumn("Units In Stock", typeof(short), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnUnits_In_Stock);
this.columnUnits_On_Order = new global::System.Data.DataColumn("Units On Order", typeof(short), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnUnits_On_Order);
this.columnReorder_Level = new global::System.Data.DataColumn("Reorder Level", typeof(short), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnReorder_Level);
this.columnDiscontinued = new global::System.Data.DataColumn("Discontinued", typeof(bool), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDiscontinued);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnProduct_ID}, true));
this.columnProduct_ID.AutoIncrement = true;
this.columnProduct_ID.AutoIncrementSeed = -1;
this.columnProduct_ID.AutoIncrementStep = -1;
this.columnProduct_ID.AllowDBNull = false;
this.columnProduct_ID.ReadOnly = true;
this.columnProduct_ID.Unique = true;
this.columnProduct_Name.AllowDBNull = false;
this.columnProduct_Name.MaxLength = 40;
this.columnEnglish_Name.MaxLength = 40;
this.columnQuantity_Per_Unit.MaxLength = 20;
this.columnDiscontinued.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductsRow NewProductsRow() {
return ((ProductsRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new ProductsRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Type GetRowType() {
return typeof(ProductsRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.ProductsRowChanged != null)) {
this.ProductsRowChanged(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.ProductsRowChanging != null)) {
this.ProductsRowChanging(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.ProductsRowDeleted != null)) {
this.ProductsRowDeleted(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.ProductsRowDeleting != null)) {
this.ProductsRowDeleting(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveProductsRow(ProductsRow 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();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -