internal void InitVars(bool initTable) { this.tableUSER = ((USERDataTable)(base.Tables["USER"])); if ((initTable == true)) { if ((this.tableUSER != null)) { this.tableUSER.InitVars(); } } this.tableUSERROLE = ((USERROLEDataTable)(base.Tables["USERROLE"])); if ((initTable == true)) { if ((this.tableUSERROLE != null)) { this.tableUSERROLE.InitVars(); } } this.tableROLE = ((ROLEDataTable)(base.Tables["ROLE"])); if ((initTable == true)) { if ((this.tableROLE != null)) { this.tableROLE.InitVars(); } } }
private void InitClass() { this.DataSetName = "UserDS"; this.Prefix = ""; this.Namespace = "http://tempuri.org/UserDS.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableUSER = new USERDataTable(); base.Tables.Add(this.tableUSER); this.tableUSERROLE = new USERROLEDataTable(); base.Tables.Add(this.tableUSERROLE); this.tableROLE = new ROLEDataTable(); base.Tables.Add(this.tableROLE); global::System.Data.ForeignKeyConstraint fkc; fkc = new global::System.Data.ForeignKeyConstraint("USER_SUPERVISORID_FK", new global::System.Data.DataColumn[] { this.tableUSER.IDColumn}, new global::System.Data.DataColumn[] { this.tableUSER.SUPERVISORIDColumn}); this.tableUSER.Constraints.Add(fkc); fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; fkc.DeleteRule = global::System.Data.Rule.None; fkc.UpdateRule = global::System.Data.Rule.None; fkc = new global::System.Data.ForeignKeyConstraint("USERROLE_ROLE_FK", new global::System.Data.DataColumn[] { this.tableROLE.IDColumn}, new global::System.Data.DataColumn[] { this.tableUSERROLE.ROLEIDColumn}); this.tableUSERROLE.Constraints.Add(fkc); fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; fkc.DeleteRule = global::System.Data.Rule.None; fkc.UpdateRule = global::System.Data.Rule.None; fkc = new global::System.Data.ForeignKeyConstraint("USERROLE_USER_FK", new global::System.Data.DataColumn[] { this.tableUSER.IDColumn}, new global::System.Data.DataColumn[] { this.tableUSERROLE.USERIDColumn}); this.tableUSERROLE.Constraints.Add(fkc); fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; fkc.DeleteRule = global::System.Data.Rule.None; fkc.UpdateRule = global::System.Data.Rule.None; }
internal USERRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tableUSER = ((USERDataTable)(this.Table)); }