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

HicServices / RDMP / 16410328515

21 Jul 2025 06:42AM UTC coverage: 57.423% (+0.1%) from 57.301%
16410328515

Pull #2205

github

JFriel
tidy up
Pull Request #2205: Multi-Project Catalogues

11427 of 21435 branches covered (53.31%)

Branch coverage included in aggregate %.

101 of 145 new or added lines in 16 files covered. (69.66%)

32 existing lines in 4 files now uncovered.

32393 of 54876 relevant lines covered (59.03%)

17538.27 hits per line

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

94.74
/Rdmp.Core/DataExport/Data/ExtractableDataSetProject.cs
1
using Rdmp.Core.Curation.Data;
2
using Rdmp.Core.MapsDirectlyToDatabaseTable;
3
using Rdmp.Core.Repositories;
4
using System;
5
using System.Collections.Generic;
6
using System.Data.Common;
7
using System.Linq;
8
using System.Text;
9
using System.Threading.Tasks;
10

11
namespace Rdmp.Core.DataExport.Data
12
{
13
    /// <summary>
14
    /// Used in a one-to-many relationship for the proejcts that are associated with a certain extractable dataset
15
    /// </summary>
16
    public class ExtractableDataSetProject : DatabaseEntity, IMapsDirectlyToDatabaseTable
17
    {
18
        #region Database Properties
19
        private int _projectID;
20
        private int _extractableDataSetID;
21

22
        public int Project_ID
23
        {
24
            get => _projectID;
34,182✔
25
            set => SetField(ref _projectID, value);
26,598✔
26
        }
27

28
        public int ExtractableDataSet_ID
29
        {
30
            get => _extractableDataSetID;
2,930✔
31
            set => SetField(ref _extractableDataSetID, value);
26,598✔
32
        }
33
        #endregion
34
        #region Relationships
35
        [NoMappingToDatabase]
36
        public IProject Project => Repository.GetObjectByID<Project>(_projectID);
6✔
37

38
        [NoMappingToDatabase]
39
        public ExtractableDataSet DataSet=> Repository.GetObjectByID<ExtractableDataSet>(_extractableDataSetID);
1,528✔
40
        #endregion
41

NEW
42
        public ExtractableDataSetProject() { }
×
43

44
        public ExtractableDataSetProject(IDataExportRepository repository, ExtractableDataSet eds, IProject project)
48✔
45
        {
46
            Repository = repository;
48✔
47
            Repository.InsertAndHydrate(this, new Dictionary<string, object>
48✔
48
        {
48✔
49
            { "Project_ID", project.ID},
48✔
50
            { "ExtractableDataSet_ID", eds.ID }
48✔
51
        });
48✔
52
        }
48✔
53

54
        internal ExtractableDataSetProject(IDataExportRepository repository, DbDataReader r) : base(repository, r)
26,550✔
55
        {
56
            Project_ID = int.Parse(r["Project_ID"].ToString());
26,550✔
57
            ExtractableDataSet_ID = int.Parse(r["ExtractableDataSet_ID"].ToString());
26,550✔
58
        }
26,550✔
59
    }
60
}
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

© 2025 Coveralls, Inc