Example #1
0
 internal void InitVars(bool initTable) {
     this.tableCompra = ((CompraDataTable)(base.Tables["Compra"]));
     if ((initTable == true)) {
         if ((this.tableCompra != null)) {
             this.tableCompra.InitVars();
         }
     }
     this.tableCompraLinea = ((CompraLineaDataTable)(base.Tables["CompraLinea"]));
     if ((initTable == true)) {
         if ((this.tableCompraLinea != null)) {
             this.tableCompraLinea.InitVars();
         }
     }
     this.tableReporte = ((ReporteDataTable)(base.Tables["Reporte"]));
     if ((initTable == true)) {
         if ((this.tableReporte != null)) {
             this.tableReporte.InitVars();
         }
     }
     this.relationCompra_CompraLinea = this.Relations["Compra_CompraLinea"];
 }
Example #2
0
 private void InitClass() {
     this.DataSetName = "Compras";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/Compras.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableCompra = new CompraDataTable();
     base.Tables.Add(this.tableCompra);
     this.tableCompraLinea = new CompraLineaDataTable();
     base.Tables.Add(this.tableCompraLinea);
     this.tableReporte = new ReporteDataTable();
     base.Tables.Add(this.tableReporte);
     global::System.Data.ForeignKeyConstraint fkc;
     fkc = new global::System.Data.ForeignKeyConstraint("Compra_CompraLinea", new global::System.Data.DataColumn[] {
                 this.tableCompra.NroFacturaColumn}, new global::System.Data.DataColumn[] {
                 this.tableCompraLinea.NroFacturaColumn});
     this.tableCompraLinea.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.None;
     fkc.UpdateRule = global::System.Data.Rule.None;
     this.relationCompra_CompraLinea = new global::System.Data.DataRelation("Compra_CompraLinea", new global::System.Data.DataColumn[] {
                 this.tableCompra.NroFacturaColumn}, new global::System.Data.DataColumn[] {
                 this.tableCompraLinea.NroFacturaColumn}, false);
     this.Relations.Add(this.relationCompra_CompraLinea);
 }
Example #3
0
 internal CompraRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableCompra = ((CompraDataTable)(this.Table));
 }