📄 northwinddataset.designer.cs
字号:
this.tableShippers.InitVars();
}
}
this.tableSuppliers = ((SuppliersDataTable)(base.Tables["Suppliers"]));
if ((initTable == true)) {
if ((this.tableSuppliers != null)) {
this.tableSuppliers.InitVars();
}
}
this.relationOrder_Details_FK00 = this.Relations["Order Details_FK00"];
this.relationOrder_Details_FK01 = this.Relations["Order Details_FK01"];
this.relationOrders_FK00 = this.Relations["Orders_FK00"];
this.relationOrders_FK01 = this.Relations["Orders_FK01"];
this.relationOrders_FK02 = this.Relations["Orders_FK02"];
this.relationProducts_FK00 = this.Relations["Products_FK00"];
this.relationProducts_FK01 = this.Relations["Products_FK01"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.DataSetName = "NorthwindDataSet";
this.Prefix = "";
this.Namespace = "http://tempuri.org/NorthwindDataSet.xsd";
this.EnforceConstraints = true;
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
this.tableCategories = new CategoriesDataTable();
base.Tables.Add(this.tableCategories);
this.tableCustomers = new CustomersDataTable();
base.Tables.Add(this.tableCustomers);
this.tableEmployees = new EmployeesDataTable();
base.Tables.Add(this.tableEmployees);
this.tableOrder_Details = new Order_DetailsDataTable();
base.Tables.Add(this.tableOrder_Details);
this.tableOrders = new OrdersDataTable();
base.Tables.Add(this.tableOrders);
this.tableProducts = new ProductsDataTable();
base.Tables.Add(this.tableProducts);
this.tableShippers = new ShippersDataTable();
base.Tables.Add(this.tableShippers);
this.tableSuppliers = new SuppliersDataTable();
base.Tables.Add(this.tableSuppliers);
this.relationOrder_Details_FK00 = new global::System.Data.DataRelation("Order Details_FK00", new global::System.Data.DataColumn[] {
this.tableProducts.Product_IDColumn}, new global::System.Data.DataColumn[] {
this.tableOrder_Details.Product_IDColumn}, false);
this.Relations.Add(this.relationOrder_Details_FK00);
this.relationOrder_Details_FK01 = new global::System.Data.DataRelation("Order Details_FK01", new global::System.Data.DataColumn[] {
this.tableOrders.Order_IDColumn}, new global::System.Data.DataColumn[] {
this.tableOrder_Details.Order_IDColumn}, false);
this.Relations.Add(this.relationOrder_Details_FK01);
this.relationOrders_FK00 = new global::System.Data.DataRelation("Orders_FK00", new global::System.Data.DataColumn[] {
this.tableCustomers.Customer_IDColumn}, new global::System.Data.DataColumn[] {
this.tableOrders.Customer_IDColumn}, false);
this.Relations.Add(this.relationOrders_FK00);
this.relationOrders_FK01 = new global::System.Data.DataRelation("Orders_FK01", new global::System.Data.DataColumn[] {
this.tableShippers.Shipper_IDColumn}, new global::System.Data.DataColumn[] {
this.tableOrders.Ship_ViaColumn}, false);
this.Relations.Add(this.relationOrders_FK01);
this.relationOrders_FK02 = new global::System.Data.DataRelation("Orders_FK02", new global::System.Data.DataColumn[] {
this.tableEmployees.Employee_IDColumn}, new global::System.Data.DataColumn[] {
this.tableOrders.Employee_IDColumn}, false);
this.Relations.Add(this.relationOrders_FK02);
this.relationProducts_FK00 = new global::System.Data.DataRelation("Products_FK00", new global::System.Data.DataColumn[] {
this.tableSuppliers.Supplier_IDColumn}, new global::System.Data.DataColumn[] {
this.tableProducts.Supplier_IDColumn}, false);
this.Relations.Add(this.relationProducts_FK00);
this.relationProducts_FK01 = new global::System.Data.DataRelation("Products_FK01", new global::System.Data.DataColumn[] {
this.tableCategories.Category_IDColumn}, new global::System.Data.DataColumn[] {
this.tableProducts.Category_IDColumn}, false);
this.Relations.Add(this.relationProducts_FK01);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeCategories() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeCustomers() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeEmployees() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeOrder_Details() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeOrders() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeProducts() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeShippers() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeSuppliers() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
NorthwindDataSet ds = new NorthwindDataSet();
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
any.Namespace = ds.Namespace;
sequence.Items.Add(any);
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;
}
public delegate void CategoriesRowChangeEventHandler(object sender, CategoriesRowChangeEvent e);
public delegate void CustomersRowChangeEventHandler(object sender, CustomersRowChangeEvent e);
public delegate void EmployeesRowChangeEventHandler(object sender, EmployeesRowChangeEvent e);
public delegate void Order_DetailsRowChangeEventHandler(object sender, Order_DetailsRowChangeEvent e);
public delegate void OrdersRowChangeEventHandler(object sender, OrdersRowChangeEvent e);
public delegate void ProductsRowChangeEventHandler(object sender, ProductsRowChangeEvent e);
public delegate void ShippersRowChangeEventHandler(object sender, ShippersRowChangeEvent e);
public delegate void SuppliersRowChangeEventHandler(object sender, SuppliersRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class CategoriesDataTable : global::System.Data.TypedTableBase<CategoriesRow> {
private global::System.Data.DataColumn columnCategory_ID;
private global::System.Data.DataColumn columnCategory_Name;
private global::System.Data.DataColumn columnDescription;
private global::System.Data.DataColumn columnPicture;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CategoriesDataTable() {
this.TableName = "Categories";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal CategoriesDataTable(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 Category_IDColumn {
get {
return this.columnCategory_ID;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn Category_NameColumn {
get {
return this.columnCategory_Name;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn DescriptionColumn {
get {
return this.columnDescription;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn PictureColumn {
get {
return this.columnPicture;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CategoriesRow this[int index] {
get {
return ((CategoriesRow)(this.Rows[index]));
}
}
public event CategoriesRowChangeEventHandler CategoriesRowChanging;
public event CategoriesRowChangeEventHandler CategoriesRowChanged;
public event CategoriesRowChangeEventHandler CategoriesRowDeleting;
public event CategoriesRowChangeEventHandler CategoriesRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddCategoriesRow(CategoriesRow row) {
this.Rows.Add(row);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -