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

HicServices / RDMP / 19129827733

06 Nov 2025 08:43AM UTC coverage: 57.107% (-0.3%) from 57.409%
19129827733

push

github

web-flow
Merge branch 'develop' into dependabot/nuget/develop/NUnit.Analyzers-4.7.0

11418 of 21469 branches covered (53.18%)

Branch coverage included in aggregate %.

201 of 873 new or added lines in 49 files covered. (23.02%)

65 existing lines in 14 files now uncovered.

32412 of 55282 relevant lines covered (58.63%)

17586.73 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;
36,478✔
25
            set => SetField(ref _projectID, value);
3,914✔
26
        }
27

28
        public int ExtractableDataSet_ID
29
        {
30
            get => _extractableDataSetID;
10,072✔
31
            set => SetField(ref _extractableDataSetID, value);
3,914✔
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,042✔
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)
3,866✔
55
        {
56
            Project_ID = int.Parse(r["Project_ID"].ToString());
3,866✔
57
            ExtractableDataSet_ID = int.Parse(r["ExtractableDataSet_ID"].ToString());
3,866✔
58
        }
3,866✔
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

© 2026 Coveralls, Inc