📄 dataset1.designer.cs
字号:
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn QuantityColumn {
get {
return this.columnQuantity;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn TotalPriceColumn {
get {
return this.columnTotalPrice;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public StockDetailsRow this[int index] {
get {
return ((StockDetailsRow)(this.Rows[index]));
}
}
public event StockDetailsRowChangeEventHandler StockDetailsRowChanging;
public event StockDetailsRowChangeEventHandler StockDetailsRowChanged;
public event StockDetailsRowChangeEventHandler StockDetailsRowDeleting;
public event StockDetailsRowChangeEventHandler StockDetailsRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddStockDetailsRow(StockDetailsRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public StockDetailsRow AddStockDetailsRow(int DetailID, int StockID, int ProductsID, decimal UnitPrice, int Quantity, decimal TotalPrice) {
StockDetailsRow rowStockDetailsRow = ((StockDetailsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
DetailID,
StockID,
ProductsID,
UnitPrice,
Quantity,
TotalPrice};
rowStockDetailsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowStockDetailsRow);
return rowStockDetailsRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public StockDetailsRow FindByDetailID(int DetailID) {
return ((StockDetailsRow)(this.Rows.Find(new object[] {
DetailID})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual global::System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override global::System.Data.DataTable Clone() {
StockDetailsDataTable cln = ((StockDetailsDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataTable CreateInstance() {
return new StockDetailsDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnDetailID = base.Columns["DetailID"];
this.columnStockID = base.Columns["StockID"];
this.columnProductsID = base.Columns["ProductsID"];
this.columnUnitPrice = base.Columns["UnitPrice"];
this.columnQuantity = base.Columns["Quantity"];
this.columnTotalPrice = base.Columns["TotalPrice"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnDetailID = new global::System.Data.DataColumn("DetailID", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDetailID);
this.columnStockID = new global::System.Data.DataColumn("StockID", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnStockID);
this.columnProductsID = new global::System.Data.DataColumn("ProductsID", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnProductsID);
this.columnUnitPrice = new global::System.Data.DataColumn("UnitPrice", typeof(decimal), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnUnitPrice);
this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnQuantity);
this.columnTotalPrice = new global::System.Data.DataColumn("TotalPrice", typeof(decimal), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnTotalPrice);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnDetailID}, true));
this.columnDetailID.AllowDBNull = false;
this.columnDetailID.Unique = true;
this.columnStockID.AllowDBNull = false;
this.columnProductsID.AllowDBNull = false;
this.columnUnitPrice.AllowDBNull = false;
this.columnQuantity.AllowDBNull = false;
this.columnTotalPrice.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public StockDetailsRow NewStockDetailsRow() {
return ((StockDetailsRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new StockDetailsRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override global::System.Type GetRowType() {
return typeof(StockDetailsRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.StockDetailsRowChanged != null)) {
this.StockDetailsRowChanged(this, new StockDetailsRowChangeEvent(((StockDetailsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.StockDetailsRowChanging != null)) {
this.StockDetailsRowChanging(this, new StockDetailsRowChangeEvent(((StockDetailsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.StockDetailsRowDeleted != null)) {
this.StockDetailsRowDeleted(this, new StockDetailsRowChangeEvent(((StockDetailsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.StockDetailsRowDeleting != null)) {
this.StockDetailsRowDeleting(this, new StockDetailsRowChangeEvent(((StockDetailsRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveStockDetailsRow(StockDetailsRow 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();
DataSet1 ds = new DataSet1();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "StockDetailsDataTable";
type.Attributes.Add(attribute2);
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;
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class StocksDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
private global::System.Data.DataColumn columnStockID;
private global::System.Data.DataColumn columnSupplierID;
private global::System.Data.DataColumn columnEmployeeID;
private global::System.Data.DataColumn columnTotalPrice;
private global::System.Data.DataColumn columnZDR;
private global::System.Data.DataColumn columnTime;
private global::System.Data.DataColumn columnTotalTax;
private global::System.Data.DataColumn columnNoTax;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public StocksDataTable() {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -