📄 northwnddataset.designer.cs
字号:
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnOrderID = base.Columns["OrderID"];
this.columnCustomerID = base.Columns["CustomerID"];
this.columnEmployeeID = base.Columns["EmployeeID"];
this.columnOrderDate = base.Columns["OrderDate"];
this.columnRequiredDate = base.Columns["RequiredDate"];
this.columnShippedDate = base.Columns["ShippedDate"];
this.columnShipVia = base.Columns["ShipVia"];
this.columnFreight = base.Columns["Freight"];
this.columnShipName = base.Columns["ShipName"];
this.columnShipAddress = base.Columns["ShipAddress"];
this.columnShipCity = base.Columns["ShipCity"];
this.columnShipRegion = base.Columns["ShipRegion"];
this.columnShipPostalCode = base.Columns["ShipPostalCode"];
this.columnShipCountry = base.Columns["ShipCountry"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnOrderID = new System.Data.DataColumn("OrderID", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnOrderID);
this.columnCustomerID = new System.Data.DataColumn("CustomerID", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnCustomerID);
this.columnEmployeeID = new System.Data.DataColumn("EmployeeID", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnEmployeeID);
this.columnOrderDate = new System.Data.DataColumn("OrderDate", typeof(System.DateTime), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnOrderDate);
this.columnRequiredDate = new System.Data.DataColumn("RequiredDate", typeof(System.DateTime), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnRequiredDate);
this.columnShippedDate = new System.Data.DataColumn("ShippedDate", typeof(System.DateTime), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnShippedDate);
this.columnShipVia = new System.Data.DataColumn("ShipVia", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnShipVia);
this.columnFreight = new System.Data.DataColumn("Freight", typeof(decimal), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnFreight);
this.columnShipName = new System.Data.DataColumn("ShipName", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnShipName);
this.columnShipAddress = new System.Data.DataColumn("ShipAddress", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnShipAddress);
this.columnShipCity = new System.Data.DataColumn("ShipCity", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnShipCity);
this.columnShipRegion = new System.Data.DataColumn("ShipRegion", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnShipRegion);
this.columnShipPostalCode = new System.Data.DataColumn("ShipPostalCode", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnShipPostalCode);
this.columnShipCountry = new System.Data.DataColumn("ShipCountry", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnShipCountry);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.columnOrderID}, true));
this.columnOrderID.AutoIncrement = true;
this.columnOrderID.AllowDBNull = false;
this.columnOrderID.ReadOnly = true;
this.columnOrderID.Unique = true;
this.columnCustomerID.MaxLength = 5;
this.columnShipName.MaxLength = 40;
this.columnShipAddress.MaxLength = 60;
this.columnShipCity.MaxLength = 15;
this.columnShipRegion.MaxLength = 15;
this.columnShipPostalCode.MaxLength = 10;
this.columnShipCountry.MaxLength = 15;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public OrdersRow NewOrdersRow() {
return ((OrdersRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new OrdersRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(OrdersRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.OrdersRowChanged != null)) {
this.OrdersRowChanged(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.OrdersRowChanging != null)) {
this.OrdersRowChanging(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.OrdersRowDeleted != null)) {
this.OrdersRowDeleted(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.OrdersRowDeleting != null)) {
this.OrdersRowDeleting(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveOrdersRow(OrdersRow 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();
northwndDataSet ds = new northwndDataSet();
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 = "OrdersDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public partial class CustomersRow : System.Data.DataRow {
private CustomersDataTable tableCustomers;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal CustomersRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tableCustomers = ((CustomersDataTable)(this.Table));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string CustomerID {
get {
return ((string)(this[this.tableCustomers.CustomerIDColumn]));
}
set {
this[this.tableCustomers.CustomerIDColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string CompanyName {
get {
return ((string)(this[this.tableCustomers.CompanyNameColumn]));
}
set {
this[this.tableCustomers.CompanyNameColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string ContactName {
get {
try {
return ((string)(this[this.tableCustomers.ContactNameColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'ContactName\' in table \'Customers\' is DBNull.", e);
}
}
set {
this[this.tableCustomers.ContactNameColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string ContactTitle {
get {
try {
return ((string)(this[this.tableCustomers.ContactTitleColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'ContactTitle\' in table \'Customers\' is DBNull.", e);
}
}
set {
this[this.tableCustomers.ContactTitleColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Address {
get {
try {
return ((string)(this[this.tableCustomers.AddressColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'Address\' in table \'Customers\' is DBNull.", e);
}
}
set {
this[this.tableCustomers.AddressColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string City {
get {
try {
return ((string)(this[this.tableCustomers.CityColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'City\' in table \'Customers\' is DBNull.", e);
}
}
set {
this[this.tableCustomers.CityColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Region {
get {
try {
return ((string)(this[this.tableCustomers.RegionColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'Region\' in table \'Customers\' is DBNull.", e);
}
}
set {
this[this.tableCustomers.RegionColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string PostalCode {
get {
try {
return ((string)(this[this.tableCustomers.PostalCodeColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'PostalCode\' in table \'Customers\' is DBNull.", e);
}
}
set {
this[this.tableCustomers.PostalCodeColumn] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Country {
get {
try {
return ((string)(this[this.tableCustomers.CountryColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'Country\' in table \'Customers\' is DBNull.", e);
}
}
set {
this[this.tableCustomers.CountryColumn] = value;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -