internal void InitVars(bool initTable) { this.tableWarehouse = ((WarehouseDataTable)(base.Tables["Warehouse"])); if ((initTable == true)) { if ((this.tableWarehouse != null)) { this.tableWarehouse.InitVars(); } } this.tableStock = ((StockDataTable)(base.Tables["Stock"])); if ((initTable == true)) { if ((this.tableStock != null)) { this.tableStock.InitVars(); } } this.tableVendor = ((VendorDataTable)(base.Tables["Vendor"])); if ((initTable == true)) { if ((this.tableVendor != null)) { this.tableVendor.InitVars(); } } this.tablePurchase = ((PurchaseDataTable)(base.Tables["Purchase"])); if ((initTable == true)) { if ((this.tablePurchase != null)) { this.tablePurchase.InitVars(); } } this.tableProduct = ((ProductDataTable)(base.Tables["Product"])); if ((initTable == true)) { if ((this.tableProduct != null)) { this.tableProduct.InitVars(); } } this.tableCustomer = ((CustomerDataTable)(base.Tables["Customer"])); if ((initTable == true)) { if ((this.tableCustomer != null)) { this.tableCustomer.InitVars(); } } this.tableSales = ((SalesDataTable)(base.Tables["Sales"])); if ((initTable == true)) { if ((this.tableSales != null)) { this.tableSales.InitVars(); } } this.tablePurchase_Reciept = ((Purchase_RecieptDataTable)(base.Tables["Purchase Reciept"])); if ((initTable == true)) { if ((this.tablePurchase_Reciept != null)) { this.tablePurchase_Reciept.InitVars(); } } }
private void InitClass() { this.DataSetName = "datasetRetailStore"; this.Prefix = ""; this.Namespace = "http://tempuri.org/datasetRetailStore.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableWarehouse = new WarehouseDataTable(); base.Tables.Add(this.tableWarehouse); this.tableStock = new StockDataTable(); base.Tables.Add(this.tableStock); this.tableVendor = new VendorDataTable(); base.Tables.Add(this.tableVendor); this.tablePurchase = new PurchaseDataTable(); base.Tables.Add(this.tablePurchase); this.tableProduct = new ProductDataTable(); base.Tables.Add(this.tableProduct); this.tableCustomer = new CustomerDataTable(); base.Tables.Add(this.tableCustomer); this.tableSales = new SalesDataTable(); base.Tables.Add(this.tableSales); this.tablePurchase_Reciept = new Purchase_RecieptDataTable(); base.Tables.Add(this.tablePurchase_Reciept); }
internal WarehouseRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tableWarehouse = ((WarehouseDataTable)(this.Table)); }