private void InitClass() { this.DataSetName = "NewDataSet"; this.Prefix = ""; this.Namespace = "http://tempuri.org/mod_project.xsd"; this.Locale = new System.Globalization.CultureInfo("en-AU"); this.CaseSensitive = false; this.EnforceConstraints = false; this.table_mod_project = new _mod_projectDataTable(); this.Tables.Add(this.table_mod_project); this.tablefile = new fileDataTable(); this.Tables.Add(this.tablefile); ForeignKeyConstraint fkc; fkc = new ForeignKeyConstraint("mod-project_file", new DataColumn[] { this.table_mod_project._mod_project_IdColumn }, new DataColumn[] { this.tablefile._mod_project_IdColumn }); this.tablefile.Constraints.Add(fkc); fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; fkc.DeleteRule = System.Data.Rule.Cascade; fkc.UpdateRule = System.Data.Rule.Cascade; this._relationmod_project_file = new DataRelation("mod-project_file", new DataColumn[] { this.table_mod_project._mod_project_IdColumn }, new DataColumn[] { this.tablefile._mod_project_IdColumn }, false); this._relationmod_project_file.Nested = true; this.Relations.Add(this._relationmod_project_file); }
public override DataTable Clone() { _mod_projectDataTable cln = ((_mod_projectDataTable)(base.Clone())); cln.InitVars(); return(cln); }
internal void InitVars() { this.table_mod_project = ((_mod_projectDataTable)(this.Tables["mod-project"])); if ((this.table_mod_project != null)) { this.table_mod_project.InitVars(); } this.tablefile = ((fileDataTable)(this.Tables["file"])); if ((this.tablefile != null)) { this.tablefile.InitVars(); } this._relationmod_project_file = this.Relations["mod-project_file"]; }
internal _mod_projectRow(DataRowBuilder rb) : base(rb) { this.table_mod_project = ((_mod_projectDataTable)(this.Table)); }