📄 productsdataset.designer.cs
字号:
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn SizeColumn {
get {
return this.columnSize;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn ProductCategoryIDColumn {
get {
return this.columnProductCategoryID;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int Count {
get {
return this.Rows.Count;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductRow this[int index] {
get {
return ((ProductRow)(this.Rows[index]));
}
}
public event ProductRowChangeEventHandler ProductRowChanging;
public event ProductRowChangeEventHandler ProductRowChanged;
public event ProductRowChangeEventHandler ProductRowDeleting;
public event ProductRowChangeEventHandler ProductRowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddProductRow(ProductRow row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductRow AddProductRow(string Name, string Color, decimal ListPrice, string Size, ProductCategoryRow parentProductCategoryRowByProduct_ProductCategory_FK) {
ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
rowProductRow.ItemArray = new object[] {
null,
Name,
Color,
ListPrice,
Size,
parentProductCategoryRowByProduct_ProductCategory_FK[0]};
this.Rows.Add(rowProductRow);
return rowProductRow;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductRow FindByProductID(int ProductID) {
return ((ProductRow)(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() {
ProductDataTable cln = ((ProductDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new ProductDataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnProductID = base.Columns["ProductID"];
this.columnName = base.Columns["Name"];
this.columnColor = base.Columns["Color"];
this.columnListPrice = base.Columns["ListPrice"];
this.columnSize = base.Columns["Size"];
this.columnProductCategoryID = base.Columns["ProductCategoryID"];
}
[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.columnName = new System.Data.DataColumn("Name", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnName);
this.columnColor = new System.Data.DataColumn("Color", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnColor);
this.columnListPrice = new System.Data.DataColumn("ListPrice", typeof(decimal), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnListPrice);
this.columnSize = new System.Data.DataColumn("Size", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnSize);
this.columnProductCategoryID = new System.Data.DataColumn("ProductCategoryID", typeof(int), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnProductCategoryID);
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.columnName.AllowDBNull = false;
this.columnName.MaxLength = 50;
this.columnColor.MaxLength = 15;
this.columnListPrice.AllowDBNull = false;
this.columnSize.MaxLength = 5;
this.columnProductCategoryID.AllowDBNull = false;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductRow NewProductRow() {
return ((ProductRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new ProductRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(ProductRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.ProductRowChanged != null)) {
this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.ProductRowChanging != null)) {
this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.ProductRowDeleted != null)) {
this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.ProductRowDeleting != null)) {
this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveProductRow(ProductRow 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();
ProductsDataSet ds = new ProductsDataSet();
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 = "ProductDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
[System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class ProductCategoryDataTable : System.Data.DataTable, System.Collections.IEnumerable {
private System.Data.DataColumn columnProductCategoryID;
private System.Data.DataColumn columnName;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductCategoryDataTable() {
this.TableName = "ProductCategory";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal ProductCategoryDataTable(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()]
public System.Data.DataColumn ProductCategoryIDColumn {
get {
return this.columnProductCategoryID;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn NameColumn {
get {
return this.columnName;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int Count {
get {
return this.Rows.Count;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductCategoryRow this[int index] {
get {
return ((ProductCategoryRow)(this.Rows[index]));
}
}
public event ProductCategoryRowChangeEventHandler ProductCategoryRowChanging;
public event ProductCategoryRowChangeEventHandler ProductCategoryRowChanged;
public event ProductCategoryRowChangeEventHandler ProductCategoryRowDeleting;
public event ProductCategoryRowChangeEventHandler ProductCategoryRowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddProductCategoryRow(ProductCategoryRow row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ProductCategoryRow AddProductCategoryRow(string Name) {
ProductCategoryRow rowProductCategoryRow = ((ProductCategoryRow)(this.NewRow()));
rowProductCategoryRow.ItemArray = new object[] {
null,
Name};
this.Rows.Add(rowProductCategoryRow);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -