Skip to content

Commit 43bcced

Browse files
committed
tables
1 parent 501ea93 commit 43bcced

File tree

44 files changed

+564
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+564
-96
lines changed

Rdmp.Core/Caching/CachingPreExecutionChecker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void Check(ICheckNotifier notifier)
3434
if (_cacheProgress.Pipeline_ID == null)
3535
throw new Exception($"CacheProgress {_cacheProgress.ID} doesn't have a caching pipeline!");
3636

37-
IPipeline pipeline = null;
37+
EntityFramework.Models.Pipeline pipeline = null;
3838
try
3939
{
4040
pipeline = _cacheProgress.Pipeline;

Rdmp.Core/Caching/Pipeline/CachingPipelineUseCase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace Rdmp.Core.Caching.Pipeline;
3232
public sealed class CachingPipelineUseCase : PipelineUseCase
3333
{
3434
private readonly ICacheProgress _cacheProgress;
35-
private readonly IPipeline _pipeline;
35+
private readonly EntityFramework.Models.Pipeline _pipeline;
3636

3737
/// <summary>
3838
/// Class for helping you to construct a caching pipeline engine instance with the correct context and initialization objects

Rdmp.Core/CommandExecution/AtomicCommandFactory.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -992,13 +992,13 @@ public IEnumerable<IAtomicCommand> CreateCommands(object o)
992992
if (Is(o, out INamed n))
993993
yield return new ExecuteCommandRename(_activator, n) { SuggestedShortcut = "F2" };
994994

995-
if (Is(o, out PipelineCompatibleWithUseCaseNode pcu))
996-
{
997-
yield return new ExecuteCommandNewObject(_activator, typeof(Pipeline))
998-
{ OverrideCommandName = "New Pipeline" };
999-
yield return new ExecuteCommandClonePipeline(_activator, pcu.Pipeline);
1000-
yield return new ExecuteCommandAddPipelineComponent(_activator, pcu.Pipeline, pcu.UseCase);
1001-
}
995+
//if (Is(o, out PipelineCompatibleWithUseCaseNode pcu))
996+
//{
997+
// yield return new ExecuteCommandNewObject(_activator, typeof(Pipeline))
998+
// { OverrideCommandName = "New Pipeline" };
999+
// yield return new ExecuteCommandClonePipeline(_activator, pcu.Pipeline);
1000+
// yield return new ExecuteCommandAddPipelineComponent(_activator, pcu.Pipeline, pcu.UseCase);
1001+
//}
10021002
else if (Is(o, out Pipeline pipeline))
10031003
{
10041004
yield return new ExecuteCommandNewObject(_activator, typeof(Pipeline))

Rdmp.Core/CommandExecution/AtomicCommands/CatalogueCreationCommands/ExecuteCommandCreateNewCatalogueByImportingFile.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Rdmp.Core.CommandExecution.AtomicCommands.CatalogueCreationCommands;
3030
public class ExecuteCommandCreateNewCatalogueByImportingFile : CatalogueCreationCommandExecution
3131
{
3232
private readonly DiscoveredDatabase _targetDatabase;
33-
private IPipeline _pipeline;
33+
private EntityFramework.Models.Pipeline _pipeline;
3434
private readonly string _extractionIdentifier;
3535
private readonly string _initialDescription;
3636

@@ -62,7 +62,7 @@ public ExecuteCommandCreateNewCatalogueByImportingFile(IBasicActivateItems activ
6262
DiscoveredDatabase targetDatabase,
6363
[DemandsInitialization(
6464
"Pipeline for reading the source file, applying any transforms and writing to the database")]
65-
Pipeline pipeline,
65+
EntityFramework.Models.Pipeline pipeline,
6666
[DemandsInitialization(Desc_ProjectSpecificParameter)]
6767
Project projectSpecific,
6868
string initialDescription=null) : base(activator, projectSpecific, null)
@@ -99,11 +99,11 @@ public override void Execute()
9999

100100
if (_pipeline == null)
101101
{
102-
var pipelines = BasicActivator.RepositoryLocator.CatalogueDbContext.GetAllObjects<Pipeline>();
102+
var pipelines = BasicActivator.RepositoryLocator.CatalogueDbContext.Pipelines;
103103

104104
var compatible = UploadFileUseCase.DesignTime().FilterCompatiblePipelines(pipelines).ToArray();
105105

106-
_pipeline = (IPipeline)BasicActivator.SelectOne("File Upload Pipeline", compatible);
106+
_pipeline = (EntityFramework.Models.Pipeline)BasicActivator.SelectOne("File Upload Pipeline", compatible);
107107

108108
if (_pipeline == null)
109109
throw new Exception("No pipeline selected for upload");

Rdmp.Core/CommandExecution/AtomicCommands/CohortCreationCommands/CohortCreationCommandExecution.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public abstract class CohortCreationCommandExecution : BasicCommandExecution, IA
3131

3232
protected ExternalCohortTable ExternalCohortTable;
3333
protected IProject Project;
34-
protected readonly IPipeline Pipeline;
34+
protected readonly EntityFramework.Models.Pipeline Pipeline;
3535
private readonly string _explicitCohortName;
3636

3737
/// <summary>
@@ -52,7 +52,7 @@ protected CohortCreationCommandExecution(IBasicActivateItems activator)
5252
/// <param name="project"></param>
5353
/// <param name="pipeline"></param>
5454
protected CohortCreationCommandExecution(IBasicActivateItems activator, ExternalCohortTable externalCohortTable,
55-
string cohortName, Project project, IPipeline pipeline) : base(activator)
55+
string cohortName, Project project, EntityFramework.Models.Pipeline pipeline) : base(activator)
5656
{
5757
//May be null
5858
_explicitCohortName = cohortName;

Rdmp.Core/CommandExecution/AtomicCommands/CohortCreationCommands/ExecuteCommandCreateNewCohortByExecutingACohortIdentificationConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public ExecuteCommandCreateNewCohortByExecutingACohortIdentificationConfiguratio
5151
Project project,
5252
[DemandsInitialization(
5353
"Pipeline for executing the query, performing any required transforms on the output list and allocating release identifiers")]
54-
IPipeline pipeline) :
54+
EntityFramework.Models.Pipeline pipeline) :
5555
base(activator, ect, cohortName, project, pipeline)
5656
{
5757
_cic = cic;

Rdmp.Core/CommandExecution/AtomicCommands/CohortCreationCommands/ExecuteCommandCreateNewCohortFromCatalogue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public ExecuteCommandCreateNewCohortFromCatalogue(IBasicActivateItems activator,
5858
Project project,
5959
[DemandsInitialization(
6060
"Pipeline for executing the query, performing any required transforms on the output list and allocating release identifiers")]
61-
IPipeline pipeline) : base(activator, ect, cohortName, project, pipeline)
61+
EntityFramework.Models.Pipeline pipeline) : base(activator, ect, cohortName, project, pipeline)
6262
{
6363
UseTripleDotSuffix = true;
6464

Rdmp.Core/CommandExecution/AtomicCommands/CohortCreationCommands/ExecuteCommandCreateNewCohortFromFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public ExecuteCommandCreateNewCohortFromFile(IBasicActivateItems activator,
4848
[DemandsInitialization(Desc_ProjectParameter)]
4949
Project project,
5050
[DemandsInitialization("Pipeline for reading from the file and allocating release identifiers")]
51-
IPipeline pipeline)
51+
EntityFramework.Models.Pipeline pipeline)
5252
: base(activator, externalCohortTable, cohortName, project, pipeline)
5353
{
5454
_file = file;

Rdmp.Core/CommandExecution/Combining/PipelineCombineable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ namespace Rdmp.Core.CommandExecution.Combining;
1313
/// </summary>
1414
public class PipelineCombineable : ICombineToMakeCommand
1515
{
16-
public Pipeline Pipeline { get; private set; }
16+
public IPipeline Pipeline { get; private set; }
1717
public bool IsEmpty { get; private set; }
1818

19-
public PipelineCombineable(Pipeline pipeline)
19+
public PipelineCombineable(IPipeline pipeline)
2020
{
2121
Pipeline = pipeline;
2222

Rdmp.Core/CommandLine/DatabaseCreation/ExampleDatasetsCreation.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ WHERE Operation <> 'NULL' AND Operation <> 'Nul'
197197

198198
//Find the pipeline for committing cohorts
199199
var cohortCreationPipeline =
200-
_repos.CatalogueDbContext.GetAllObjects<Pipeline>().FirstOrDefault(p =>
201-
p?.Source?.Class == typeof(CohortIdentificationConfigurationSource).FullName) ??
200+
_repos.CatalogueDbContext.Pipelines.FirstOrDefault( p =>
201+
p.Source.Class == typeof(CohortIdentificationConfigurationSource).FullName) ??
202202
throw new Exception("Could not find a cohort committing pipeline");
203203

204204
//A cohort creation query
@@ -379,7 +379,7 @@ private ExtractionConfiguration CreateExtractionConfiguration(Project project, E
379379
}
380380

381381
private ExtractableCohort CommitCohortToNewProject(CohortIdentificationConfiguration cic,
382-
ExternalCohortTable externalCohortTable, IPipeline cohortCreationPipeline, string projectName,
382+
ExternalCohortTable externalCohortTable, EntityFramework.Models.Pipeline cohortCreationPipeline, string projectName,
383383
string cohortName, int projectNumber, out Project project)
384384
{
385385
//create a new data extraction Project

0 commit comments

Comments
 (0)