• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HicServices / RDMP / 26566491872

28 May 2026 09:28AM UTC coverage: 57.019% (-0.08%) from 57.099%
26566491872

push

github

web-flow
Merge pull request #2337 from HicServices/task/rdmp-378-extraction-pk-parity

Ensure Extraction PK PArity & enabkle Viewing of Archive Trigger

11557 of 21809 branches covered (52.99%)

Branch coverage included in aggregate %.

13 of 112 new or added lines in 17 files covered. (11.61%)

32686 of 55785 relevant lines covered (58.59%)

9031.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Rdmp.Core/DataViewing/ViewSupportingSqlCollection.cs
1
// Copyright (c) The University of Dundee 2018-2021
2
// This file is part of the Research Data Management Platform (RDMP).
3
// RDMP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4
// RDMP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
5
// You should have received a copy of the GNU General Public License along with RDMP. If not, see <https://www.gnu.org/licenses/>.
6

7
using System.Collections.Generic;
8
using System.Linq;
9
using FAnsi.Discovery.QuerySyntax;
10
using Rdmp.Core.Curation.Data;
11
using Rdmp.Core.Curation.Data.Dashboarding;
12
using Rdmp.Core.ReusableLibraryCode.DataAccess;
13

14
namespace Rdmp.Core.DataViewing;
15

16
internal class ViewSupportingSqlCollection : PersistableObjectCollection, IViewSQLAndResultsCollection
17
{
18
    public SupportingSQLTable SupportingSQLTable => DatabaseObjects.OfType<SupportingSQLTable>().FirstOrDefault();
×
NEW
19
    public bool DisableRun => false;
×
20

21
    public ViewSupportingSqlCollection(SupportingSQLTable supportingSql)
×
22
    {
23
        DatabaseObjects.Add(supportingSql);
×
24
    }
×
25

26
    /// <summary>
27
    /// Persistence constructor
28
    /// </summary>
29
    public ViewSupportingSqlCollection()
×
30
    {
31
    }
×
32

33
    public void AdjustAutocomplete(IAutoCompleteProvider autoComplete)
34
    {
35
    }
×
36

37
    public IDataAccessPoint GetDataAccessPoint() => SupportingSQLTable.ExternalDatabaseServer;
×
38

39
    public IQuerySyntaxHelper GetQuerySyntaxHelper()
40
    {
41
        var syntax = SupportingSQLTable.ExternalDatabaseServer?.DatabaseType ?? FAnsi.DatabaseType.MicrosoftSQLServer;
×
42
        return QuerySyntaxHelperFactory.Create(syntax);
×
43
    }
44

45
    public string GetSql() => SupportingSQLTable.SQL;
×
46

47
    public string GetTabName() => SupportingSQLTable.Name;
×
48

49
    public IEnumerable<DatabaseEntity> GetToolStripObjects()
50
    {
51
        yield return SupportingSQLTable;
×
52
    }
×
53
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc