BookStoreDataSet.Designer.cs
资源名称:BookStore.rar [点击查看]
上传用户:xyl529207
上传日期:2022-08-03
资源大小:935k
文件大小:277k
源码类别:
行业应用
开发平台:
SQL
- //------------------------------------------------------------------------------
- // <auto-generated>
- // 此代码由工具生成。
- // 运行库版本:2.0.50727.42
- //
- // 对此文件的更改可能会导致不正确的行为,并且如果
- // 重新生成代码,这些更改将会丢失。
- // </auto-generated>
- //------------------------------------------------------------------------------
- #pragma warning disable 1591
- namespace BookStoreMan {
- using System;
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [Serializable()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- [System.ComponentModel.ToolboxItem(true)]
- [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
- [System.Xml.Serialization.XmlRootAttribute("BookStoreDataSet")]
- [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
- public partial class BookStoreDataSet : System.Data.DataSet {
- private BookDataTable tableBook;
- private CustomerDataTable tableCustomer;
- private SellDataTable tableSell;
- private SellItemDataTable tableSellItem;
- private V_BookSellDataTable tableV_BookSell;
- private P_GetSellDetailDataTable tableP_GetSellDetail;
- private System.Data.DataRelation relationFK_SellItem_Book;
- private System.Data.DataRelation relationFK_SellItem_Sell;
- private System.Data.DataRelation relationCustomer_Sell;
- private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public BookStoreDataSet() {
- this.BeginInit();
- this.InitClass();
- System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- base.Tables.CollectionChanged += schemaChangedHandler;
- base.Relations.CollectionChanged += schemaChangedHandler;
- this.EndInit();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected BookStoreDataSet(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
- base(info, context, false) {
- if ((this.IsBinarySerialized(info, context) == true)) {
- this.InitVars(false);
- System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- this.Tables.CollectionChanged += schemaChangedHandler1;
- this.Relations.CollectionChanged += schemaChangedHandler1;
- return;
- }
- string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
- if ((this.DetermineSchemaSerializationMode(info, context) == System.Data.SchemaSerializationMode.IncludeSchema)) {
- System.Data.DataSet ds = new System.Data.DataSet();
- ds.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema)));
- if ((ds.Tables["Book"] != null)) {
- base.Tables.Add(new BookDataTable(ds.Tables["Book"]));
- }
- if ((ds.Tables["Customer"] != null)) {
- base.Tables.Add(new CustomerDataTable(ds.Tables["Customer"]));
- }
- if ((ds.Tables["Sell"] != null)) {
- base.Tables.Add(new SellDataTable(ds.Tables["Sell"]));
- }
- if ((ds.Tables["SellItem"] != null)) {
- base.Tables.Add(new SellItemDataTable(ds.Tables["SellItem"]));
- }
- if ((ds.Tables["V_BookSell"] != null)) {
- base.Tables.Add(new V_BookSellDataTable(ds.Tables["V_BookSell"]));
- }
- if ((ds.Tables["P_GetSellDetail"] != null)) {
- base.Tables.Add(new P_GetSellDetailDataTable(ds.Tables["P_GetSellDetail"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- else {
- this.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema)));
- }
- this.GetSerializationData(info, context);
- System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
- base.Tables.CollectionChanged += schemaChangedHandler;
- this.Relations.CollectionChanged += schemaChangedHandler;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public BookDataTable Book {
- get {
- return this.tableBook;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public CustomerDataTable Customer {
- get {
- return this.tableCustomer;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public SellDataTable Sell {
- get {
- return this.tableSell;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public SellItemDataTable SellItem {
- get {
- return this.tableSellItem;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public V_BookSellDataTable V_BookSell {
- get {
- return this.tableV_BookSell;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.Browsable(false)]
- [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
- public P_GetSellDetailDataTable P_GetSellDetail {
- get {
- return this.tableP_GetSellDetail;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.BrowsableAttribute(true)]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)]
- public override System.Data.SchemaSerializationMode SchemaSerializationMode {
- get {
- return this._schemaSerializationMode;
- }
- set {
- this._schemaSerializationMode = value;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
- public new System.Data.DataTableCollection Tables {
- get {
- return base.Tables;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
- public new System.Data.DataRelationCollection Relations {
- get {
- return base.Relations;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void InitializeDerivedDataSet() {
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override System.Data.DataSet Clone() {
- BookStoreDataSet cln = ((BookStoreDataSet)(base.Clone()));
- cln.InitVars();
- cln.SchemaSerializationMode = this.SchemaSerializationMode;
- return cln;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override bool ShouldSerializeTables() {
- return false;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override bool ShouldSerializeRelations() {
- return false;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void ReadXmlSerializable(System.Xml.XmlReader reader) {
- if ((this.DetermineSchemaSerializationMode(reader) == System.Data.SchemaSerializationMode.IncludeSchema)) {
- this.Reset();
- System.Data.DataSet ds = new System.Data.DataSet();
- ds.ReadXml(reader);
- if ((ds.Tables["Book"] != null)) {
- base.Tables.Add(new BookDataTable(ds.Tables["Book"]));
- }
- if ((ds.Tables["Customer"] != null)) {
- base.Tables.Add(new CustomerDataTable(ds.Tables["Customer"]));
- }
- if ((ds.Tables["Sell"] != null)) {
- base.Tables.Add(new SellDataTable(ds.Tables["Sell"]));
- }
- if ((ds.Tables["SellItem"] != null)) {
- base.Tables.Add(new SellItemDataTable(ds.Tables["SellItem"]));
- }
- if ((ds.Tables["V_BookSell"] != null)) {
- base.Tables.Add(new V_BookSellDataTable(ds.Tables["V_BookSell"]));
- }
- if ((ds.Tables["P_GetSellDetail"] != null)) {
- base.Tables.Add(new P_GetSellDetailDataTable(ds.Tables["P_GetSellDetail"]));
- }
- this.DataSetName = ds.DataSetName;
- this.Prefix = ds.Prefix;
- this.Namespace = ds.Namespace;
- this.Locale = ds.Locale;
- this.CaseSensitive = ds.CaseSensitive;
- this.EnforceConstraints = ds.EnforceConstraints;
- this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
- this.InitVars();
- }
- else {
- this.ReadXml(reader);
- this.InitVars();
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
- System.IO.MemoryStream stream = new System.IO.MemoryStream();
- this.WriteXmlSchema(new System.Xml.XmlTextWriter(stream, null));
- stream.Position = 0;
- return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(stream), null);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.InitVars(true);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars(bool initTable) {
- this.tableBook = ((BookDataTable)(base.Tables["Book"]));
- if ((initTable == true)) {
- if ((this.tableBook != null)) {
- this.tableBook.InitVars();
- }
- }
- this.tableCustomer = ((CustomerDataTable)(base.Tables["Customer"]));
- if ((initTable == true)) {
- if ((this.tableCustomer != null)) {
- this.tableCustomer.InitVars();
- }
- }
- this.tableSell = ((SellDataTable)(base.Tables["Sell"]));
- if ((initTable == true)) {
- if ((this.tableSell != null)) {
- this.tableSell.InitVars();
- }
- }
- this.tableSellItem = ((SellItemDataTable)(base.Tables["SellItem"]));
- if ((initTable == true)) {
- if ((this.tableSellItem != null)) {
- this.tableSellItem.InitVars();
- }
- }
- this.tableV_BookSell = ((V_BookSellDataTable)(base.Tables["V_BookSell"]));
- if ((initTable == true)) {
- if ((this.tableV_BookSell != null)) {
- this.tableV_BookSell.InitVars();
- }
- }
- this.tableP_GetSellDetail = ((P_GetSellDetailDataTable)(base.Tables["P_GetSellDetail"]));
- if ((initTable == true)) {
- if ((this.tableP_GetSellDetail != null)) {
- this.tableP_GetSellDetail.InitVars();
- }
- }
- this.relationFK_SellItem_Book = this.Relations["FK_SellItem_Book"];
- this.relationFK_SellItem_Sell = this.Relations["FK_SellItem_Sell"];
- this.relationCustomer_Sell = this.Relations["Customer_Sell"];
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.DataSetName = "BookStoreDataSet";
- this.Prefix = "";
- this.Namespace = "http://tempuri.org/BookStoreDataSet.xsd";
- this.EnforceConstraints = true;
- this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
- this.tableBook = new BookDataTable();
- base.Tables.Add(this.tableBook);
- this.tableCustomer = new CustomerDataTable();
- base.Tables.Add(this.tableCustomer);
- this.tableSell = new SellDataTable();
- base.Tables.Add(this.tableSell);
- this.tableSellItem = new SellItemDataTable();
- base.Tables.Add(this.tableSellItem);
- this.tableV_BookSell = new V_BookSellDataTable();
- base.Tables.Add(this.tableV_BookSell);
- this.tableP_GetSellDetail = new P_GetSellDetailDataTable();
- base.Tables.Add(this.tableP_GetSellDetail);
- this.relationFK_SellItem_Book = new System.Data.DataRelation("FK_SellItem_Book", new System.Data.DataColumn[] {
- this.tableBook.IDColumn}, new System.Data.DataColumn[] {
- this.tableSellItem.BookIDColumn}, false);
- this.Relations.Add(this.relationFK_SellItem_Book);
- this.relationFK_SellItem_Sell = new System.Data.DataRelation("FK_SellItem_Sell", new System.Data.DataColumn[] {
- this.tableSell.IDColumn}, new System.Data.DataColumn[] {
- this.tableSellItem.SellIDColumn}, false);
- this.Relations.Add(this.relationFK_SellItem_Sell);
- this.relationCustomer_Sell = new System.Data.DataRelation("Customer_Sell", new System.Data.DataColumn[] {
- this.tableCustomer.IDColumn}, new System.Data.DataColumn[] {
- this.tableSell.CustomerIDColumn}, false);
- this.Relations.Add(this.relationCustomer_Sell);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeBook() {
- return false;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeCustomer() {
- return false;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeSell() {
- return false;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeSellItem() {
- return false;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeV_BookSell() {
- return false;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private bool ShouldSerializeP_GetSellDetail() {
- return false;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
- if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
- this.InitVars();
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) {
- BookStoreDataSet ds = new BookStoreDataSet();
- System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
- System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
- xs.Add(ds.GetSchemaSerializable());
- System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny();
- any.Namespace = ds.Namespace;
- sequence.Items.Add(any);
- type.Particle = sequence;
- return type;
- }
- public delegate void BookRowChangeEventHandler(object sender, BookRowChangeEvent e);
- public delegate void CustomerRowChangeEventHandler(object sender, CustomerRowChangeEvent e);
- public delegate void SellRowChangeEventHandler(object sender, SellRowChangeEvent e);
- public delegate void SellItemRowChangeEventHandler(object sender, SellItemRowChangeEvent e);
- public delegate void V_BookSellRowChangeEventHandler(object sender, V_BookSellRowChangeEvent e);
- public delegate void P_GetSellDetailRowChangeEventHandler(object sender, P_GetSellDetailRowChangeEvent e);
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
- [System.Serializable()]
- [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
- public partial class BookDataTable : System.Data.DataTable, System.Collections.IEnumerable {
- private System.Data.DataColumn columnID;
- private System.Data.DataColumn columnISBN;
- private System.Data.DataColumn columnName;
- private System.Data.DataColumn columnAuthor;
- private System.Data.DataColumn columnPress;
- private System.Data.DataColumn columnPublishDate;
- private System.Data.DataColumn columnPrice;
- private System.Data.DataColumn columnPages;
- private System.Data.DataColumn columnBarcode;
- private System.Data.DataColumn columnCD;
- private System.Data.DataColumn columnStorage;
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public BookDataTable() {
- this.TableName = "Book";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal BookDataTable(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 BookDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn IDColumn {
- get {
- return this.columnID;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn ISBNColumn {
- get {
- return this.columnISBN;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn NameColumn {
- get {
- return this.columnName;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn AuthorColumn {
- get {
- return this.columnAuthor;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn PressColumn {
- get {
- return this.columnPress;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn PublishDateColumn {
- get {
- return this.columnPublishDate;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn PriceColumn {
- get {
- return this.columnPrice;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn PagesColumn {
- get {
- return this.columnPages;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn BarcodeColumn {
- get {
- return this.columnBarcode;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn CDColumn {
- get {
- return this.columnCD;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn StorageColumn {
- get {
- return this.columnStorage;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public BookRow this[int index] {
- get {
- return ((BookRow)(this.Rows[index]));
- }
- }
- public event BookRowChangeEventHandler BookRowChanging;
- public event BookRowChangeEventHandler BookRowChanged;
- public event BookRowChangeEventHandler BookRowDeleting;
- public event BookRowChangeEventHandler BookRowDeleted;
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddBookRow(BookRow row) {
- this.Rows.Add(row);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public BookRow AddBookRow(string ISBN, string Name, string Author, string Press, System.DateTime PublishDate, decimal Price, short Pages, string Barcode, bool CD, int Storage) {
- BookRow rowBookRow = ((BookRow)(this.NewRow()));
- rowBookRow.ItemArray = new object[] {
- null,
- ISBN,
- Name,
- Author,
- Press,
- PublishDate,
- Price,
- Pages,
- Barcode,
- CD,
- Storage};
- this.Rows.Add(rowBookRow);
- return rowBookRow;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public BookRow FindByID(int ID) {
- return ((BookRow)(this.Rows.Find(new object[] {
- ID})));
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public virtual System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override System.Data.DataTable Clone() {
- BookDataTable cln = ((BookDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Data.DataTable CreateInstance() {
- return new BookDataTable();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnID = base.Columns["ID"];
- this.columnISBN = base.Columns["ISBN"];
- this.columnName = base.Columns["Name"];
- this.columnAuthor = base.Columns["Author"];
- this.columnPress = base.Columns["Press"];
- this.columnPublishDate = base.Columns["PublishDate"];
- this.columnPrice = base.Columns["Price"];
- this.columnPages = base.Columns["Pages"];
- this.columnBarcode = base.Columns["Barcode"];
- this.columnCD = base.Columns["CD"];
- this.columnStorage = base.Columns["Storage"];
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnID = new System.Data.DataColumn("ID", typeof(int), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnID);
- this.columnISBN = new System.Data.DataColumn("ISBN", typeof(string), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnISBN);
- this.columnName = new System.Data.DataColumn("Name", typeof(string), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnName);
- this.columnAuthor = new System.Data.DataColumn("Author", typeof(string), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnAuthor);
- this.columnPress = new System.Data.DataColumn("Press", typeof(string), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnPress);
- this.columnPublishDate = new System.Data.DataColumn("PublishDate", typeof(System.DateTime), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnPublishDate);
- this.columnPrice = new System.Data.DataColumn("Price", typeof(decimal), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnPrice);
- this.columnPages = new System.Data.DataColumn("Pages", typeof(short), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnPages);
- this.columnBarcode = new System.Data.DataColumn("Barcode", typeof(string), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnBarcode);
- this.columnCD = new System.Data.DataColumn("CD", typeof(bool), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnCD);
- this.columnStorage = new System.Data.DataColumn("Storage", typeof(int), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnStorage);
- this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
- this.columnID}, true));
- this.columnID.AutoIncrement = true;
- this.columnID.AllowDBNull = false;
- this.columnID.ReadOnly = true;
- this.columnID.Unique = true;
- this.columnISBN.AllowDBNull = false;
- this.columnISBN.MaxLength = 10;
- this.columnName.AllowDBNull = false;
- this.columnName.MaxLength = 256;
- this.columnAuthor.MaxLength = 100;
- this.columnPress.MaxLength = 50;
- this.columnPrice.AllowDBNull = false;
- this.columnBarcode.AllowDBNull = false;
- this.columnBarcode.MaxLength = 13;
- this.columnStorage.AllowDBNull = false;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public BookRow NewBookRow() {
- return ((BookRow)(this.NewRow()));
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
- return new BookRow(builder);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Type GetRowType() {
- return typeof(BookRow);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.BookRowChanged != null)) {
- this.BookRowChanged(this, new BookRowChangeEvent(((BookRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.BookRowChanging != null)) {
- this.BookRowChanging(this, new BookRowChangeEvent(((BookRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.BookRowDeleted != null)) {
- this.BookRowDeleted(this, new BookRowChangeEvent(((BookRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.BookRowDeleting != null)) {
- this.BookRowDeleting(this, new BookRowChangeEvent(((BookRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveBookRow(BookRow 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();
- BookStoreDataSet ds = new BookStoreDataSet();
- 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 = "BookDataTable";
- 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 CustomerDataTable : System.Data.DataTable, System.Collections.IEnumerable {
- private System.Data.DataColumn columnID;
- private System.Data.DataColumn columnName;
- private System.Data.DataColumn columnLevels;
- private System.Data.DataColumn columnGender;
- private System.Data.DataColumn columnBirthday;
- private System.Data.DataColumn columnDegree;
- private System.Data.DataColumn columnAddress;
- private System.Data.DataColumn columnTelephone;
- private System.Data.DataColumn columnEmail;
- private System.Data.DataColumn columnScore;
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public CustomerDataTable() {
- this.TableName = "Customer";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal CustomerDataTable(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 CustomerDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn IDColumn {
- get {
- return this.columnID;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn NameColumn {
- get {
- return this.columnName;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn LevelsColumn {
- get {
- return this.columnLevels;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn GenderColumn {
- get {
- return this.columnGender;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn BirthdayColumn {
- get {
- return this.columnBirthday;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn DegreeColumn {
- get {
- return this.columnDegree;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn AddressColumn {
- get {
- return this.columnAddress;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn TelephoneColumn {
- get {
- return this.columnTelephone;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn EmailColumn {
- get {
- return this.columnEmail;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn ScoreColumn {
- get {
- return this.columnScore;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public CustomerRow this[int index] {
- get {
- return ((CustomerRow)(this.Rows[index]));
- }
- }
- public event CustomerRowChangeEventHandler CustomerRowChanging;
- public event CustomerRowChangeEventHandler CustomerRowChanged;
- public event CustomerRowChangeEventHandler CustomerRowDeleting;
- public event CustomerRowChangeEventHandler CustomerRowDeleted;
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddCustomerRow(CustomerRow row) {
- this.Rows.Add(row);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public CustomerRow AddCustomerRow(string Name, short Levels, bool Gender, System.DateTime Birthday, string Degree, string Address, string Telephone, string Email, int Score) {
- CustomerRow rowCustomerRow = ((CustomerRow)(this.NewRow()));
- rowCustomerRow.ItemArray = new object[] {
- null,
- Name,
- Levels,
- Gender,
- Birthday,
- Degree,
- Address,
- Telephone,
- Email,
- Score};
- this.Rows.Add(rowCustomerRow);
- return rowCustomerRow;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public CustomerRow FindByID(int ID) {
- return ((CustomerRow)(this.Rows.Find(new object[] {
- ID})));
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public virtual System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override System.Data.DataTable Clone() {
- CustomerDataTable cln = ((CustomerDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Data.DataTable CreateInstance() {
- return new CustomerDataTable();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnID = base.Columns["ID"];
- this.columnName = base.Columns["Name"];
- this.columnLevels = base.Columns["Levels"];
- this.columnGender = base.Columns["Gender"];
- this.columnBirthday = base.Columns["Birthday"];
- this.columnDegree = base.Columns["Degree"];
- this.columnAddress = base.Columns["Address"];
- this.columnTelephone = base.Columns["Telephone"];
- this.columnEmail = base.Columns["Email"];
- this.columnScore = base.Columns["Score"];
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnID = new System.Data.DataColumn("ID", typeof(int), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnID);
- this.columnName = new System.Data.DataColumn("Name", typeof(string), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnName);
- this.columnLevels = new System.Data.DataColumn("Levels", typeof(short), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnLevels);
- this.columnGender = new System.Data.DataColumn("Gender", typeof(bool), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnGender);
- this.columnBirthday = new System.Data.DataColumn("Birthday", typeof(System.DateTime), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnBirthday);
- this.columnDegree = new System.Data.DataColumn("Degree", typeof(string), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnDegree);
- this.columnAddress = new System.Data.DataColumn("Address", typeof(string), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnAddress);
- this.columnTelephone = new System.Data.DataColumn("Telephone", typeof(string), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnTelephone);
- this.columnEmail = new System.Data.DataColumn("Email", typeof(string), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnEmail);
- this.columnScore = new System.Data.DataColumn("Score", typeof(int), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnScore);
- this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
- this.columnID}, true));
- this.columnID.AutoIncrement = true;
- this.columnID.AllowDBNull = false;
- this.columnID.ReadOnly = true;
- this.columnID.Unique = true;
- this.columnName.AllowDBNull = false;
- this.columnName.MaxLength = 20;
- this.columnLevels.AllowDBNull = false;
- this.columnDegree.MaxLength = 20;
- this.columnAddress.MaxLength = 256;
- this.columnTelephone.MaxLength = 50;
- this.columnEmail.MaxLength = 50;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public CustomerRow NewCustomerRow() {
- return ((CustomerRow)(this.NewRow()));
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
- return new CustomerRow(builder);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Type GetRowType() {
- return typeof(CustomerRow);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.CustomerRowChanged != null)) {
- this.CustomerRowChanged(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.CustomerRowChanging != null)) {
- this.CustomerRowChanging(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.CustomerRowDeleted != null)) {
- this.CustomerRowDeleted(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.CustomerRowDeleting != null)) {
- this.CustomerRowDeleting(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveCustomerRow(CustomerRow 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();
- BookStoreDataSet ds = new BookStoreDataSet();
- 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 = "CustomerDataTable";
- 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 SellDataTable : System.Data.DataTable, System.Collections.IEnumerable {
- private System.Data.DataColumn columnID;
- private System.Data.DataColumn columnCustomerID;
- private System.Data.DataColumn columnSum;
- private System.Data.DataColumn columnTime;
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public SellDataTable() {
- this.TableName = "Sell";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal SellDataTable(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 SellDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn IDColumn {
- get {
- return this.columnID;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn CustomerIDColumn {
- get {
- return this.columnCustomerID;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn SumColumn {
- get {
- return this.columnSum;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn TimeColumn {
- get {
- return this.columnTime;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public SellRow this[int index] {
- get {
- return ((SellRow)(this.Rows[index]));
- }
- }
- public event SellRowChangeEventHandler SellRowChanging;
- public event SellRowChangeEventHandler SellRowChanged;
- public event SellRowChangeEventHandler SellRowDeleting;
- public event SellRowChangeEventHandler SellRowDeleted;
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddSellRow(SellRow row) {
- this.Rows.Add(row);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public SellRow AddSellRow(CustomerRow parentCustomerRowByCustomer_Sell, decimal Sum, System.DateTime Time) {
- SellRow rowSellRow = ((SellRow)(this.NewRow()));
- rowSellRow.ItemArray = new object[] {
- null,
- parentCustomerRowByCustomer_Sell[0],
- Sum,
- Time};
- this.Rows.Add(rowSellRow);
- return rowSellRow;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public SellRow FindByID(int ID) {
- return ((SellRow)(this.Rows.Find(new object[] {
- ID})));
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public virtual System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override System.Data.DataTable Clone() {
- SellDataTable cln = ((SellDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Data.DataTable CreateInstance() {
- return new SellDataTable();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnID = base.Columns["ID"];
- this.columnCustomerID = base.Columns["CustomerID"];
- this.columnSum = base.Columns["Sum"];
- this.columnTime = base.Columns["Time"];
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnID = new System.Data.DataColumn("ID", typeof(int), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnID);
- this.columnCustomerID = new System.Data.DataColumn("CustomerID", typeof(int), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnCustomerID);
- this.columnSum = new System.Data.DataColumn("Sum", typeof(decimal), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnSum);
- this.columnTime = new System.Data.DataColumn("Time", typeof(System.DateTime), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnTime);
- this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
- this.columnID}, true));
- this.columnID.AutoIncrement = true;
- this.columnID.AllowDBNull = false;
- this.columnID.ReadOnly = true;
- this.columnID.Unique = true;
- this.columnSum.AllowDBNull = false;
- this.columnTime.AllowDBNull = false;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public SellRow NewSellRow() {
- return ((SellRow)(this.NewRow()));
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
- return new SellRow(builder);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Type GetRowType() {
- return typeof(SellRow);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.SellRowChanged != null)) {
- this.SellRowChanged(this, new SellRowChangeEvent(((SellRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.SellRowChanging != null)) {
- this.SellRowChanging(this, new SellRowChangeEvent(((SellRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.SellRowDeleted != null)) {
- this.SellRowDeleted(this, new SellRowChangeEvent(((SellRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.SellRowDeleting != null)) {
- this.SellRowDeleting(this, new SellRowChangeEvent(((SellRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveSellRow(SellRow 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();
- BookStoreDataSet ds = new BookStoreDataSet();
- 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 = "SellDataTable";
- 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 SellItemDataTable : System.Data.DataTable, System.Collections.IEnumerable {
- private System.Data.DataColumn columnID;
- private System.Data.DataColumn columnSellID;
- private System.Data.DataColumn columnBookID;
- private System.Data.DataColumn columnNumber;
- private System.Data.DataColumn columnDiscount;
- private System.Data.DataColumn columnSum;
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public SellItemDataTable() {
- this.TableName = "SellItem";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal SellItemDataTable(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 SellItemDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn IDColumn {
- get {
- return this.columnID;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn SellIDColumn {
- get {
- return this.columnSellID;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn BookIDColumn {
- get {
- return this.columnBookID;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn NumberColumn {
- get {
- return this.columnNumber;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn DiscountColumn {
- get {
- return this.columnDiscount;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn SumColumn {
- get {
- return this.columnSum;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public SellItemRow this[int index] {
- get {
- return ((SellItemRow)(this.Rows[index]));
- }
- }
- public event SellItemRowChangeEventHandler SellItemRowChanging;
- public event SellItemRowChangeEventHandler SellItemRowChanged;
- public event SellItemRowChangeEventHandler SellItemRowDeleting;
- public event SellItemRowChangeEventHandler SellItemRowDeleted;
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void AddSellItemRow(SellItemRow row) {
- this.Rows.Add(row);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public SellItemRow AddSellItemRow(SellRow parentSellRowByFK_SellItem_Sell, BookRow parentBookRowByFK_SellItem_Book, int Number, double Discount, decimal Sum) {
- SellItemRow rowSellItemRow = ((SellItemRow)(this.NewRow()));
- rowSellItemRow.ItemArray = new object[] {
- null,
- parentSellRowByFK_SellItem_Sell[0],
- parentBookRowByFK_SellItem_Book[0],
- Number,
- Discount,
- Sum};
- this.Rows.Add(rowSellItemRow);
- return rowSellItemRow;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public SellItemRow FindByID(int ID) {
- return ((SellItemRow)(this.Rows.Find(new object[] {
- ID})));
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public virtual System.Collections.IEnumerator GetEnumerator() {
- return this.Rows.GetEnumerator();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public override System.Data.DataTable Clone() {
- SellItemDataTable cln = ((SellItemDataTable)(base.Clone()));
- cln.InitVars();
- return cln;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Data.DataTable CreateInstance() {
- return new SellItemDataTable();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal void InitVars() {
- this.columnID = base.Columns["ID"];
- this.columnSellID = base.Columns["SellID"];
- this.columnBookID = base.Columns["BookID"];
- this.columnNumber = base.Columns["Number"];
- this.columnDiscount = base.Columns["Discount"];
- this.columnSum = base.Columns["Sum"];
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- private void InitClass() {
- this.columnID = new System.Data.DataColumn("ID", typeof(int), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnID);
- this.columnSellID = new System.Data.DataColumn("SellID", typeof(int), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnSellID);
- this.columnBookID = new System.Data.DataColumn("BookID", typeof(int), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnBookID);
- this.columnNumber = new System.Data.DataColumn("Number", typeof(int), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnNumber);
- this.columnDiscount = new System.Data.DataColumn("Discount", typeof(double), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnDiscount);
- this.columnSum = new System.Data.DataColumn("Sum", typeof(decimal), null, System.Data.MappingType.Element);
- base.Columns.Add(this.columnSum);
- this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
- this.columnID}, true));
- this.columnID.AutoIncrement = true;
- this.columnID.AllowDBNull = false;
- this.columnID.ReadOnly = true;
- this.columnID.Unique = true;
- this.columnSellID.AllowDBNull = false;
- this.columnBookID.AllowDBNull = false;
- this.columnNumber.AllowDBNull = false;
- this.columnDiscount.AllowDBNull = false;
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public SellItemRow NewSellItemRow() {
- return ((SellItemRow)(this.NewRow()));
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
- return new SellItemRow(builder);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override System.Type GetRowType() {
- return typeof(SellItemRow);
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanged(e);
- if ((this.SellItemRowChanged != null)) {
- this.SellItemRowChanged(this, new SellItemRowChangeEvent(((SellItemRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
- base.OnRowChanging(e);
- if ((this.SellItemRowChanging != null)) {
- this.SellItemRowChanging(this, new SellItemRowChangeEvent(((SellItemRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleted(e);
- if ((this.SellItemRowDeleted != null)) {
- this.SellItemRowDeleted(this, new SellItemRowChangeEvent(((SellItemRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
- base.OnRowDeleting(e);
- if ((this.SellItemRowDeleting != null)) {
- this.SellItemRowDeleting(this, new SellItemRowChangeEvent(((SellItemRow)(e.Row)), e.Action));
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public void RemoveSellItemRow(SellItemRow 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();
- BookStoreDataSet ds = new BookStoreDataSet();
- 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 = "SellItemDataTable";
- 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 V_BookSellDataTable : System.Data.DataTable, System.Collections.IEnumerable {
- private System.Data.DataColumn columnID;
- private System.Data.DataColumn columnCustomerID;
- private System.Data.DataColumn columnTime;
- private System.Data.DataColumn columnISBN;
- private System.Data.DataColumn columnName;
- private System.Data.DataColumn columnPress;
- private System.Data.DataColumn columnPrice;
- private System.Data.DataColumn columnNumber;
- private System.Data.DataColumn columnDiscount;
- private System.Data.DataColumn columnSum;
- private System.Data.DataColumn columnSellID;
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public V_BookSellDataTable() {
- this.TableName = "V_BookSell";
- this.BeginInit();
- this.InitClass();
- this.EndInit();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal V_BookSellDataTable(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 V_BookSellDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
- base(info, context) {
- this.InitVars();
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn IDColumn {
- get {
- return this.columnID;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn CustomerIDColumn {
- get {
- return this.columnCustomerID;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn TimeColumn {
- get {
- return this.columnTime;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn ISBNColumn {
- get {
- return this.columnISBN;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn NameColumn {
- get {
- return this.columnName;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn PressColumn {
- get {
- return this.columnPress;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn PriceColumn {
- get {
- return this.columnPrice;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn NumberColumn {
- get {
- return this.columnNumber;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn DiscountColumn {
- get {
- return this.columnDiscount;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn SumColumn {
- get {
- return this.columnSum;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public System.Data.DataColumn SellIDColumn {
- get {
- return this.columnSellID;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [System.ComponentModel.Browsable(false)]
- public int Count {
- get {
- return this.Rows.Count;
- }
- }
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public V_BookSellRow this[int index] {
- get {
- return ((V_BookSellRow)(this.Rows[index]));
- }