public override DataTable Clone()
            {
                tblPaymentTypeDataTable cln = ((tblPaymentTypeDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
        private void InitClass()
        {
            this.DataSetName           = "MethodOfPaymentSchema";
            this.Prefix                = "";
            this.Namespace             = "http://tempuri.org/MethodOfPaymentSchema.xsd";
            this.Locale                = new System.Globalization.CultureInfo("en-US");
            this.CaseSensitive         = false;
            this.EnforceConstraints    = true;
            this.tableMethodsOfPayment = new MethodsOfPaymentDataTable();
            this.Tables.Add(this.tableMethodsOfPayment);
            this.tabletblApplicationGroup = new tblApplicationGroupDataTable();
            this.Tables.Add(this.tabletblApplicationGroup);
            this.tabletblPaymentType = new tblPaymentTypeDataTable();
            this.Tables.Add(this.tabletblPaymentType);
            ForeignKeyConstraint fkc;

            fkc = new ForeignKeyConstraint("tblApplicationGrouptblMethodOfPaymentMap", new DataColumn[] {
                this.tabletblApplicationGroup.grpIdColumn
            }, new DataColumn[] {
                this.tableMethodsOfPayment.ApplicationGroupIdColumn
            });
            this.tableMethodsOfPayment.Constraints.Add(fkc);
            fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
            fkc.DeleteRule       = System.Data.Rule.Cascade;
            fkc.UpdateRule       = System.Data.Rule.Cascade;
            fkc = new ForeignKeyConstraint("tblPaymentTypetblMethodOfPaymentMap", new DataColumn[] {
                this.tabletblPaymentType.paytpIDColumn
            }, new DataColumn[] {
                this.tableMethodsOfPayment.PaymentTypeIdColumn
            });
            this.tableMethodsOfPayment.Constraints.Add(fkc);
            fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
            fkc.DeleteRule       = System.Data.Rule.Cascade;
            fkc.UpdateRule       = System.Data.Rule.Cascade;
            this.relationtblApplicationGrouptblMethodOfPaymentMap = new DataRelation("tblApplicationGrouptblMethodOfPaymentMap", new DataColumn[] {
                this.tabletblApplicationGroup.grpIdColumn
            }, new DataColumn[] {
                this.tableMethodsOfPayment.ApplicationGroupIdColumn
            }, false);
            this.Relations.Add(this.relationtblApplicationGrouptblMethodOfPaymentMap);
            this.relationtblPaymentTypetblMethodOfPaymentMap = new DataRelation("tblPaymentTypetblMethodOfPaymentMap", new DataColumn[] {
                this.tabletblPaymentType.paytpIDColumn
            }, new DataColumn[] {
                this.tableMethodsOfPayment.PaymentTypeIdColumn
            }, false);
            this.Relations.Add(this.relationtblPaymentTypetblMethodOfPaymentMap);
        }
 internal void InitVars()
 {
     this.tableMethodsOfPayment = ((MethodsOfPaymentDataTable)(this.Tables["tblMethodOfPaymentMap"]));
     if ((this.tableMethodsOfPayment != null))
     {
         this.tableMethodsOfPayment.InitVars();
     }
     this.tabletblApplicationGroup = ((tblApplicationGroupDataTable)(this.Tables["tblApplicationGroup"]));
     if ((this.tabletblApplicationGroup != null))
     {
         this.tabletblApplicationGroup.InitVars();
     }
     this.tabletblPaymentType = ((tblPaymentTypeDataTable)(this.Tables["tblPaymentType"]));
     if ((this.tabletblPaymentType != null))
     {
         this.tabletblPaymentType.InitVars();
     }
     this.relationtblApplicationGrouptblMethodOfPaymentMap = this.Relations["tblApplicationGrouptblMethodOfPaymentMap"];
     this.relationtblPaymentTypetblMethodOfPaymentMap      = this.Relations["tblPaymentTypetblMethodOfPaymentMap"];
 }
 internal tblPaymentTypeRow(DataRowBuilder rb) :
     base(rb)
 {
     this.tabletblPaymentType = ((tblPaymentTypeDataTable)(this.Table));
 }