Пример #1
0
 internal videoRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tablevideo = ((videoDataTable)(this.Table));
 }
Пример #2
0
 private void InitClass() {
     this.DataSetName = "dvrb";
     this.Prefix = "";
     this.Locale = new global::System.Globalization.CultureInfo("en-US");
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tablefile = new fileDataTable();
     base.Tables.Add(this.tablefile);
     this.tableencoding = new encodingDataTable();
     base.Tables.Add(this.tableencoding);
     this.tableaudio = new audioDataTable();
     base.Tables.Add(this.tableaudio);
     this.tableacodec = new acodecDataTable();
     base.Tables.Add(this.tableacodec);
     this.tablevideo = new videoDataTable();
     base.Tables.Add(this.tablevideo);
     this.tablevcodec = new vcodecDataTable();
     base.Tables.Add(this.tablevcodec);
     this.tableinput = new inputDataTable();
     base.Tables.Add(this.tableinput);
     this.tableoutput = new outputDataTable();
     base.Tables.Add(this.tableoutput);
     this.tablelive = new liveDataTable();
     base.Tables.Add(this.tablelive);
     this.tablevod = new vodDataTable();
     base.Tables.Add(this.tablevod);
     this.tablemetadata = new metadataDataTable();
     base.Tables.Add(this.tablemetadata);
     global::System.Data.ForeignKeyConstraint fkc;
     fkc = new global::System.Data.ForeignKeyConstraint("encoding_audio", new global::System.Data.DataColumn[] {
                 this.tableencoding.encoding_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableaudio.encoding_IdColumn});
     this.tableaudio.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("audio_acodec", new global::System.Data.DataColumn[] {
                 this.tableaudio.audio_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableacodec.audio_IdColumn});
     this.tableacodec.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("encoding_video", new global::System.Data.DataColumn[] {
                 this.tableencoding.encoding_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablevideo.encoding_IdColumn});
     this.tablevideo.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("video_vcodec", new global::System.Data.DataColumn[] {
                 this.tablevideo.video_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablevcodec.video_IdColumn});
     this.tablevcodec.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("output_live", new global::System.Data.DataColumn[] {
                 this.tableoutput.output_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablelive.output_IdColumn});
     this.tablelive.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     fkc = new global::System.Data.ForeignKeyConstraint("output_vod", new global::System.Data.DataColumn[] {
                 this.tableoutput.output_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablevod.output_IdColumn});
     this.tablevod.Constraints.Add(fkc);
     fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None;
     fkc.DeleteRule = global::System.Data.Rule.Cascade;
     fkc.UpdateRule = global::System.Data.Rule.Cascade;
     this.relationencoding_audio = new global::System.Data.DataRelation("encoding_audio", new global::System.Data.DataColumn[] {
                 this.tableencoding.encoding_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableaudio.encoding_IdColumn}, false);
     this.relationencoding_audio.Nested = true;
     this.Relations.Add(this.relationencoding_audio);
     this.relationaudio_acodec = new global::System.Data.DataRelation("audio_acodec", new global::System.Data.DataColumn[] {
                 this.tableaudio.audio_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tableacodec.audio_IdColumn}, false);
     this.relationaudio_acodec.Nested = true;
     this.Relations.Add(this.relationaudio_acodec);
     this.relationencoding_video = new global::System.Data.DataRelation("encoding_video", new global::System.Data.DataColumn[] {
                 this.tableencoding.encoding_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablevideo.encoding_IdColumn}, false);
     this.relationencoding_video.Nested = true;
     this.Relations.Add(this.relationencoding_video);
     this.relationvideo_vcodec = new global::System.Data.DataRelation("video_vcodec", new global::System.Data.DataColumn[] {
                 this.tablevideo.video_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablevcodec.video_IdColumn}, false);
     this.relationvideo_vcodec.Nested = true;
     this.Relations.Add(this.relationvideo_vcodec);
     this.relationoutput_live = new global::System.Data.DataRelation("output_live", new global::System.Data.DataColumn[] {
                 this.tableoutput.output_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablelive.output_IdColumn}, false);
     this.relationoutput_live.Nested = true;
     this.Relations.Add(this.relationoutput_live);
     this.relationoutput_vod = new global::System.Data.DataRelation("output_vod", new global::System.Data.DataColumn[] {
                 this.tableoutput.output_IdColumn}, new global::System.Data.DataColumn[] {
                 this.tablevod.output_IdColumn}, false);
     this.relationoutput_vod.Nested = true;
     this.Relations.Add(this.relationoutput_vod);
 }
Пример #3
0
 internal void InitVars(bool initTable) {
     this.tablefile = ((fileDataTable)(base.Tables["fileName"]));
     if ((initTable == true)) {
         if ((this.tablefile != null)) {
             this.tablefile.InitVars();
         }
     }
     this.tableencoding = ((encodingDataTable)(base.Tables["encoding"]));
     if ((initTable == true)) {
         if ((this.tableencoding != null)) {
             this.tableencoding.InitVars();
         }
     }
     this.tableaudio = ((audioDataTable)(base.Tables["audio"]));
     if ((initTable == true)) {
         if ((this.tableaudio != null)) {
             this.tableaudio.InitVars();
         }
     }
     this.tableacodec = ((acodecDataTable)(base.Tables["acodec"]));
     if ((initTable == true)) {
         if ((this.tableacodec != null)) {
             this.tableacodec.InitVars();
         }
     }
     this.tablevideo = ((videoDataTable)(base.Tables["video"]));
     if ((initTable == true)) {
         if ((this.tablevideo != null)) {
             this.tablevideo.InitVars();
         }
     }
     this.tablevcodec = ((vcodecDataTable)(base.Tables["vcodec"]));
     if ((initTable == true)) {
         if ((this.tablevcodec != null)) {
             this.tablevcodec.InitVars();
         }
     }
     this.tableinput = ((inputDataTable)(base.Tables["input"]));
     if ((initTable == true)) {
         if ((this.tableinput != null)) {
             this.tableinput.InitVars();
         }
     }
     this.tableoutput = ((outputDataTable)(base.Tables["output"]));
     if ((initTable == true)) {
         if ((this.tableoutput != null)) {
             this.tableoutput.InitVars();
         }
     }
     this.tablelive = ((liveDataTable)(base.Tables["live"]));
     if ((initTable == true)) {
         if ((this.tablelive != null)) {
             this.tablelive.InitVars();
         }
     }
     this.tablevod = ((vodDataTable)(base.Tables["vod"]));
     if ((initTable == true)) {
         if ((this.tablevod != null)) {
             this.tablevod.InitVars();
         }
     }
     this.tablemetadata = ((metadataDataTable)(base.Tables["metadata"]));
     if ((initTable == true)) {
         if ((this.tablemetadata != null)) {
             this.tablemetadata.InitVars();
         }
     }
     this.relationencoding_audio = this.Relations["encoding_audio"];
     this.relationaudio_acodec = this.Relations["audio_acodec"];
     this.relationencoding_video = this.Relations["encoding_video"];
     this.relationvideo_vcodec = this.Relations["video_vcodec"];
     this.relationoutput_live = this.Relations["output_live"];
     this.relationoutput_vod = this.Relations["output_vod"];
 }