public override global::System.Data.DataTable Clone()
            {
                TransactionDataTable cln = ((TransactionDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
 private void InitClass()
 {
     this.DataSetName             = "dsTransactions";
     this.Prefix                  = "";
     this.Namespace               = "http://tempuri.org/dsTransactions.xsd";
     this.EnforceConstraints      = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableTransaction        = new TransactionDataTable();
     base.Tables.Add(this.tableTransaction);
 }
 internal void InitVars(bool initTable)
 {
     this.tableTransaction = ((TransactionDataTable)(base.Tables["Transaction"]));
     if ((initTable == true))
     {
         if ((this.tableTransaction != null))
         {
             this.tableTransaction.InitVars();
         }
     }
 }
 internal TransactionRow(global::System.Data.DataRowBuilder rb) :
     base(rb)
 {
     this.tableTransaction = ((TransactionDataTable)(this.Table));
 }
Exemplo n.º 5
0
 private void InitClass() {
     this.DataSetName = "ATM";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/ATM.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableCustomer = new CustomerDataTable();
     base.Tables.Add(this.tableCustomer);
     this.tableTransaction = new TransactionDataTable();
     base.Tables.Add(this.tableTransaction);
     this.tableAccount = new AccountDataTable();
     base.Tables.Add(this.tableAccount);
     this.relationAccountTransaction = new System.Data.DataRelation("AccountTransaction", new System.Data.DataColumn[] {
                 this.tableAccount.AccountNumberColumn}, new System.Data.DataColumn[] {
                 this.tableTransaction.AccountNumberColumn}, false);
     this.Relations.Add(this.relationAccountTransaction);
     this.relationCustomerAccount = new System.Data.DataRelation("CustomerAccount", new System.Data.DataColumn[] {
                 this.tableCustomer.CustomerNumberColumn}, new System.Data.DataColumn[] {
                 this.tableAccount.CustomerNumberColumn}, false);
     this.Relations.Add(this.relationCustomerAccount);
 }
Exemplo n.º 6
0
 internal void InitVars(bool initTable) {
     this.tableCustomer = ((CustomerDataTable)(base.Tables["Customer"]));
     if ((initTable == true)) {
         if ((this.tableCustomer != null)) {
             this.tableCustomer.InitVars();
         }
     }
     this.tableTransaction = ((TransactionDataTable)(base.Tables["Transaction"]));
     if ((initTable == true)) {
         if ((this.tableTransaction != null)) {
             this.tableTransaction.InitVars();
         }
     }
     this.tableAccount = ((AccountDataTable)(base.Tables["Account"]));
     if ((initTable == true)) {
         if ((this.tableAccount != null)) {
             this.tableAccount.InitVars();
         }
     }
     this.relationAccountTransaction = this.Relations["AccountTransaction"];
     this.relationCustomerAccount = this.Relations["CustomerAccount"];
 }
Exemplo n.º 7
0
 internal TransactionRow(System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableTransaction = ((TransactionDataTable)(this.Table));
 }