public override DataTable Clone() { DatabaseDataTable cln = ((DatabaseDataTable)(base.Clone())); cln.InitVars(); return(cln); }
private void InitClass() { this.DataSetName = "SQLSyncData"; this.Prefix = ""; this.Namespace = "http://www.mckechney.com/LookUpTables.xsd"; this.Locale = new System.Globalization.CultureInfo("en-US"); this.CaseSensitive = false; this.EnforceConstraints = false; this.tableDatabase = new DatabaseDataTable(); this.Tables.Add(this.tableDatabase); this.tableLookUpTable = new LookUpTableDataTable(); this.Tables.Add(this.tableLookUpTable); ForeignKeyConstraint fkc; fkc = new ForeignKeyConstraint("Database_LookUpTable", new DataColumn[] { this.tableDatabase.Database_IdColumn }, new DataColumn[] { this.tableLookUpTable.Database_IdColumn }); this.tableLookUpTable.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; this.relationDatabase_LookUpTable = new DataRelation("Database_LookUpTable", new DataColumn[] { this.tableDatabase.Database_IdColumn }, new DataColumn[] { this.tableLookUpTable.Database_IdColumn }, false); this.relationDatabase_LookUpTable.Nested = true; this.Relations.Add(this.relationDatabase_LookUpTable); }
internal void InitVars() { this.tableDatabase = ((DatabaseDataTable)(this.Tables["Database"])); if ((this.tableDatabase != null)) { this.tableDatabase.InitVars(); } this.tableLookUpTable = ((LookUpTableDataTable)(this.Tables["LookUpTable"])); if ((this.tableLookUpTable != null)) { this.tableLookUpTable.InitVars(); } this.relationDatabase_LookUpTable = this.Relations["Database_LookUpTable"]; }
internal DatabaseRow(DataRowBuilder rb) : base(rb) { this.tableDatabase = ((DatabaseDataTable)(this.Table)); }
internal DatabaseRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tableDatabase = ((DatabaseDataTable)(this.Table)); }
private void InitClass() { this.DataSetName = "ApplicationVersions"; this.Prefix = ""; this.Namespace = "http://dol.oecken.net/ItemCreator/schemas/ApplicationVersions.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableDatabase = new DatabaseDataTable(); base.Tables.Add(this.tableDatabase); this.tableApplication = new ApplicationDataTable(); base.Tables.Add(this.tableApplication); }
internal void InitVars(bool initTable) { this.tableDatabase = ((DatabaseDataTable)(base.Tables["Database"])); if ((initTable == true)) { if ((this.tableDatabase != null)) { this.tableDatabase.InitVars(); } } this.tableApplication = ((ApplicationDataTable)(base.Tables["Application"])); if ((initTable == true)) { if ((this.tableApplication != null)) { this.tableApplication.InitVars(); } } }