示例#1
0
 internal void InitVars(bool initTable) {
     this.tableFolders = ((FoldersDataTable)(base.Tables["Folders"]));
     if ((initTable == true)) {
         if ((this.tableFolders != null)) {
             this.tableFolders.InitVars();
         }
     }
     this.tableIncludeFilters = ((IncludeFiltersDataTable)(base.Tables["IncludeFilters"]));
     if ((initTable == true)) {
         if ((this.tableIncludeFilters != null)) {
             this.tableIncludeFilters.InitVars();
         }
     }
     this.tableExcludeFilters = ((ExcludeFiltersDataTable)(base.Tables["ExcludeFilters"]));
     if ((initTable == true)) {
         if ((this.tableExcludeFilters != null)) {
             this.tableExcludeFilters.InitVars();
         }
     }
     this.tableSettings = ((SettingsDataTable)(base.Tables["Settings"]));
     if ((initTable == true)) {
         if ((this.tableSettings != null)) {
             this.tableSettings.InitVars();
         }
     }
     this.tableGlobalIncludeFilters = ((GlobalIncludeFiltersDataTable)(base.Tables["GlobalIncludeFilters"]));
     if ((initTable == true)) {
         if ((this.tableGlobalIncludeFilters != null)) {
             this.tableGlobalIncludeFilters.InitVars();
         }
     }
     this.tableGlobalExcludeFilters = ((GlobalExcludeFiltersDataTable)(base.Tables["GlobalExcludeFilters"]));
     if ((initTable == true)) {
         if ((this.tableGlobalExcludeFilters != null)) {
             this.tableGlobalExcludeFilters.InitVars();
         }
     }
     this.relationFK_Folders_IncludeFilters = this.Relations["FK_Folders_IncludeFilters"];
     this.relationFK_Folders_ExcludeFilters = this.Relations["FK_Folders_ExcludeFilters"];
 }
示例#2
0
 private void InitClass() {
     this.DataSetName = "Model";
     this.Prefix = "";
     this.Namespace = "http://xrefresh.com/model.xsd";
     this.Locale = new global::System.Globalization.CultureInfo("");
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.ExcludeSchema;
     this.tableFolders = new FoldersDataTable();
     base.Tables.Add(this.tableFolders);
     this.tableIncludeFilters = new IncludeFiltersDataTable();
     base.Tables.Add(this.tableIncludeFilters);
     this.tableExcludeFilters = new ExcludeFiltersDataTable();
     base.Tables.Add(this.tableExcludeFilters);
     this.tableSettings = new SettingsDataTable();
     base.Tables.Add(this.tableSettings);
     this.tableGlobalIncludeFilters = new GlobalIncludeFiltersDataTable();
     base.Tables.Add(this.tableGlobalIncludeFilters);
     this.tableGlobalExcludeFilters = new GlobalExcludeFiltersDataTable();
     base.Tables.Add(this.tableGlobalExcludeFilters);
     global::System.Data.ForeignKeyConstraint fkc;
     fkc = new global::System.Data.ForeignKeyConstraint("FK_Folders_IncludeFilters", new global::System.Data.DataColumn[] {
                 this.tableFolders.NameColumn}, new global::System.Data.DataColumn[] {
                 this.tableIncludeFilters.FolderColumn});
     this.tableIncludeFilters.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("FK_Folders_ExcludeFilters", new global::System.Data.DataColumn[] {
                 this.tableFolders.NameColumn}, new global::System.Data.DataColumn[] {
                 this.tableExcludeFilters.FolderColumn});
     this.tableExcludeFilters.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.relationFK_Folders_IncludeFilters = new global::System.Data.DataRelation("FK_Folders_IncludeFilters", new global::System.Data.DataColumn[] {
                 this.tableFolders.NameColumn}, new global::System.Data.DataColumn[] {
                 this.tableIncludeFilters.FolderColumn}, false);
     this.relationFK_Folders_IncludeFilters.Nested = true;
     this.Relations.Add(this.relationFK_Folders_IncludeFilters);
     this.relationFK_Folders_ExcludeFilters = new global::System.Data.DataRelation("FK_Folders_ExcludeFilters", new global::System.Data.DataColumn[] {
                 this.tableFolders.NameColumn}, new global::System.Data.DataColumn[] {
                 this.tableExcludeFilters.FolderColumn}, false);
     this.relationFK_Folders_ExcludeFilters.Nested = true;
     this.Relations.Add(this.relationFK_Folders_ExcludeFilters);
 }
示例#3
0
 internal GlobalExcludeFiltersRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableGlobalExcludeFilters = ((GlobalExcludeFiltersDataTable)(this.Table));
 }