internal void InitVars(bool initTable) { this.tableListaCampos = ((ListaCamposDataTable)(base.Tables["ListaCampos"])); if ((initTable == true)) { if ((this.tableListaCampos != null)) { this.tableListaCampos.InitVars(); } } this.tableMetodoConsulta = ((MetodoConsultaDataTable)(base.Tables["MetodoConsulta"])); if ((initTable == true)) { if ((this.tableMetodoConsulta != null)) { this.tableMetodoConsulta.InitVars(); } } this.tableClasseCRUD = ((ClasseCRUDDataTable)(base.Tables["ClasseCRUD"])); if ((initTable == true)) { if ((this.tableClasseCRUD != null)) { this.tableClasseCRUD.InitVars(); } } this.tableMetodo = ((MetodoDataTable)(base.Tables["Metodo"])); if ((initTable == true)) { if ((this.tableMetodo != null)) { this.tableMetodo.InitVars(); } } this.tableVersao = ((VersaoDataTable)(base.Tables["Versao"])); if ((initTable == true)) { if ((this.tableVersao != null)) { this.tableVersao.InitVars(); } } this.relationFK_Metodo_ListaCampos = this.Relations["FK_Metodo_ListaCampos"]; this.relationClasseCRUD_Metodo = this.Relations["ClasseCRUD_Metodo"]; }
private void InitClass() { this.DataSetName = "EstruturaSaveRAD"; this.Prefix = ""; this.Namespace = "http://tempuri.org/EstruturaSaveRAD.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; this.tableListaCampos = new ListaCamposDataTable(); base.Tables.Add(this.tableListaCampos); this.tableMetodoConsulta = new MetodoConsultaDataTable(); base.Tables.Add(this.tableMetodoConsulta); this.tableClasseCRUD = new ClasseCRUDDataTable(); base.Tables.Add(this.tableClasseCRUD); this.tableMetodo = new MetodoDataTable(); base.Tables.Add(this.tableMetodo); this.tableVersao = new VersaoDataTable(); base.Tables.Add(this.tableVersao); System.Data.ForeignKeyConstraint fkc; fkc = new System.Data.ForeignKeyConstraint("FK_Metodo_ListaCampos", new System.Data.DataColumn[] { this.tableMetodo.IDColumn}, new System.Data.DataColumn[] { this.tableListaCampos.IDMetodoColumn}); this.tableListaCampos.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.Cascade; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; fkc = new System.Data.ForeignKeyConstraint("ClasseCRUD_Metodo", new System.Data.DataColumn[] { this.tableClasseCRUD.IDColumn}, new System.Data.DataColumn[] { this.tableMetodo.IDClasseColumn}); this.tableMetodo.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.Cascade; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; this.relationFK_Metodo_ListaCampos = new System.Data.DataRelation("FK_Metodo_ListaCampos", new System.Data.DataColumn[] { this.tableMetodo.IDColumn}, new System.Data.DataColumn[] { this.tableListaCampos.IDMetodoColumn}, false); this.Relations.Add(this.relationFK_Metodo_ListaCampos); this.relationClasseCRUD_Metodo = new System.Data.DataRelation("ClasseCRUD_Metodo", new System.Data.DataColumn[] { this.tableClasseCRUD.IDColumn}, new System.Data.DataColumn[] { this.tableMetodo.IDClasseColumn}, false); this.relationClasseCRUD_Metodo.Nested = true; this.Relations.Add(this.relationClasseCRUD_Metodo); }
internal ListaCamposRow(System.Data.DataRowBuilder rb) : base(rb) { this.tableListaCampos = ((ListaCamposDataTable)(this.Table)); }