📄 northwinddataset.designer.cs
字号:
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public SuppliersRow this[int index] {
get {
return ((SuppliersRow)(this.Rows[index]));
}
}
public event SuppliersRowChangeEventHandler SuppliersRowChanging;
public event SuppliersRowChangeEventHandler SuppliersRowChanged;
public event SuppliersRowChangeEventHandler SuppliersRowDeleting;
public event SuppliersRowChangeEventHandler SuppliersRowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddSuppliersRow(SuppliersRow row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public SuppliersRow AddSuppliersRow(string CompanyName) {
SuppliersRow rowSuppliersRow = ((SuppliersRow)(this.NewRow()));
rowSuppliersRow.ItemArray = new object[] {
null,
CompanyName};
this.Rows.Add(rowSuppliersRow);
return rowSuppliersRow;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public SuppliersRow FindBySupplierID(int SupplierID) {
return ((SuppliersRow)(this.Rows.Find(new object[] {
SupplierID})));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
SuppliersDataTable cln = ((SuppliersDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new SuppliersDataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnSupplierID = base.Columns["SupplierID"];
this.columnCompanyName = base.Columns["CompanyName"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnSupplierID = new System.Data.DataColumn("SupplierID", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnSupplierID);
this.columnCompanyName = new System.Data.DataColumn("CompanyName", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnCompanyName);
this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
this.columnSupplierID}, true));
this.columnSupplierID.AutoIncrement = true;
this.columnSupplierID.AllowDBNull = false;
this.columnSupplierID.ReadOnly = true;
this.columnSupplierID.Unique = true;
this.columnCompanyName.AllowDBNull = false;
this.columnCompanyName.MaxLength = 40;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public SuppliersRow NewSuppliersRow() {
return ((SuppliersRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new SuppliersRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(SuppliersRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.SuppliersRowChanged != null)) {
this.SuppliersRowChanged(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.SuppliersRowChanging != null)) {
this.SuppliersRowChanging(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.SuppliersRowDeleted != null)) {
this.SuppliersRowDeleted(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.SuppliersRowDeleting != null)) {
this.SuppliersRowDeleting(this, new SuppliersRowChangeEvent(((SuppliersRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveSuppliersRow(SuppliersRow 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 = "SuppliersDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
[System.Serializable()]
[System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class ProductsDataTable : System.Data.DataTable, System.Collections.IEnumerable {
private System.Data.DataColumn columnProductID;
private System.Data.DataColumn columnProductName;
private System.Data.DataColumn columnSupplierID;
private System.Data.DataColumn columnCategoryID;
private System.Data.DataColumn columnQuantityPerUnit;
private System.Data.DataColumn columnUnitPrice;
private System.Data.DataColumn columnUnitsInStock;
private System.Data.DataColumn columnUnitsOnOrder;
private System.Data.DataColumn columnReorderLevel;
private System.Data.DataColumn columnDiscontinued;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductsDataTable() {
this.TableName = "Products";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal ProductsDataTable(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;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected ProductsDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ProductIDColumn {
get {
return this.columnProductID;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ProductNameColumn {
get {
return this.columnProductName;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn SupplierIDColumn {
get {
return this.columnSupplierID;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn CategoryIDColumn {
get {
return this.columnCategoryID;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn QuantityPerUnitColumn {
get {
return this.columnQuantityPerUnit;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn UnitPriceColumn {
get {
return this.columnUnitPrice;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn UnitsInStockColumn {
get {
return this.columnUnitsInStock;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn UnitsOnOrderColumn {
get {
return this.columnUnitsOnOrder;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ReorderLevelColumn {
get {
return this.columnReorderLevel;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -