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

HicServices / RDMP / 26566925905

28 May 2026 09:37AM UTC coverage: 57.023% (-0.08%) from 57.101%
26566925905

push

github

JFriel
Merge branch 'bugfix/cohort-commit-issue' of https://github.com/HicServices/RDMP into bugfix/cohort-commit-issue

11562 of 21813 branches covered (53.01%)

Branch coverage included in aggregate %.

32688 of 55787 relevant lines covered (58.59%)

18057.84 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();
×
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 · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc