Index: Application/Ringtoets/src/Application.Ringtoets.Migration.Core/EmbeddedResources/DatabaseStructure17.2.sql
===================================================================
diff -u -r2fca6955f03c0cf6b3e9c0dbfa19b40ac5a5d843 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Migration.Core/EmbeddedResources/DatabaseStructure17.2.sql (.../DatabaseStructure17.2.sql) (revision 2fca6955f03c0cf6b3e9c0dbfa19b40ac5a5d843)
+++ Application/Ringtoets/src/Application.Ringtoets.Migration.Core/EmbeddedResources/DatabaseStructure17.2.sql (.../DatabaseStructure17.2.sql) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -1,6 +1,6 @@
/* ---------------------------------------------------- */
/* Generated by Enterprise Architect Version 12.0 */
-/* Created On : 01-Sep-2017 3:36:04 PM */
+/* Created On : 07-Sep-2017 10:06:30 AM */
/* DBMS : SQLite */
/* ---------------------------------------------------- */
@@ -63,13 +63,13 @@
DROP TABLE IF EXISTS 'GrassCoverErosionOutwardsFailureMechanismMetaEntity'
;
-DROP TABLE IF EXISTS 'SoilProfileEntity'
+DROP TABLE IF EXISTS 'PipingSoilProfileEntity'
;
-DROP TABLE IF EXISTS 'SoilLayerEntity'
+DROP TABLE IF EXISTS 'PipingSoilLayerEntity'
;
-DROP TABLE IF EXISTS 'StochasticSoilProfileEntity'
+DROP TABLE IF EXISTS 'PipingStochasticSoilProfileEntity'
;
DROP TABLE IF EXISTS 'StochasticSoilModelEntity'
@@ -78,7 +78,7 @@
DROP TABLE IF EXISTS 'SurfaceLineEntity'
;
-DROP TABLE IF EXISTS 'CharacteristicPointEntity'
+DROP TABLE IF EXISTS 'PipingCharacteristicPointEntity'
;
DROP TABLE IF EXISTS 'PipingCalculationOutputEntity'
@@ -520,7 +520,7 @@
'UseAssessmentLevelManualInput' TINYINT (1) NOT NULL, -- true or false
CONSTRAINT 'FK_PipingCalculationEntity_CalculationGroupEntity' FOREIGN KEY ('CalculationGroupEntityId') REFERENCES 'CalculationGroupEntity' ('CalculationGroupEntityId') ON DELETE Cascade ON UPDATE Cascade,
CONSTRAINT 'FK_PipingCalculationEntity_HydraulicLocationEntity' FOREIGN KEY ('HydraulicLocationEntityId') REFERENCES 'HydraulicLocationEntity' ('HydraulicLocationEntityId') ON DELETE Set Null ON UPDATE Cascade,
- CONSTRAINT 'FK_PipingCalculationEntity_StochasticSoilProfileEntity' FOREIGN KEY ('StochasticSoilProfileEntityId') REFERENCES 'StochasticSoilProfileEntity' ('StochasticSoilProfileEntityId') ON DELETE Set Null ON UPDATE Cascade,
+ CONSTRAINT 'FK_PipingCalculationEntity_StochasticSoilProfileEntity' FOREIGN KEY ('StochasticSoilProfileEntityId') REFERENCES 'PipingStochasticSoilProfileEntity' ('PipingStochasticSoilProfileEntityId') ON DELETE Set Null ON UPDATE Cascade,
CONSTRAINT 'FK_PipingCalculationEntity_SurfaceLineEntity' FOREIGN KEY ('SurfaceLineEntityId') REFERENCES 'SurfaceLineEntity' ('SurfaceLineEntityId') ON DELETE Set Null ON UPDATE Cascade
)
;
@@ -574,19 +574,19 @@
)
;
-CREATE TABLE 'SoilProfileEntity'
+CREATE TABLE 'PipingSoilProfileEntity'
(
- 'SoilProfileEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ 'PipingSoilProfileEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
'Bottom' REAL,
'Name' TEXT NOT NULL,
'SourceType' TINYINT (1) NOT NULL -- Enum: 1 = SoilProfile1D, 2 = SoilProfile2D
)
;
-CREATE TABLE 'SoilLayerEntity'
+CREATE TABLE 'PipingSoilLayerEntity'
(
- 'SoilLayerEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
- 'SoilProfileEntityId' INTEGER NOT NULL,
+ 'PipingSoilLayerEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ 'PipingSoilProfileEntityId' INTEGER NOT NULL,
'Top' REAL,
'IsAquifer' TINYINT (1) NOT NULL, -- true or false
'Color' INTEGER NOT NULL, -- ARGB value of Color.
@@ -599,19 +599,19 @@
'PermeabilityMean' REAL,
'PermeabilityCoefficientOfVariation' REAL,
'Order' INT (4) NOT NULL,
- CONSTRAINT 'FK_SoilLayerEntity_SoilProfileEntity' FOREIGN KEY ('SoilProfileEntityId') REFERENCES 'SoilProfileEntity' ('SoilProfileEntityId') ON DELETE Cascade ON UPDATE Cascade
+ CONSTRAINT 'FK_PipingSoilLayerEntity_SoilProfileEntity' FOREIGN KEY ('PipingSoilProfileEntityId') REFERENCES 'PipingSoilProfileEntity' ('PipingSoilProfileEntityId') ON DELETE Cascade ON UPDATE Cascade
)
;
-CREATE TABLE 'StochasticSoilProfileEntity'
+CREATE TABLE 'PipingStochasticSoilProfileEntity'
(
- 'StochasticSoilProfileEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
- 'SoilProfileEntityId' INTEGER NOT NULL,
+ 'PipingStochasticSoilProfileEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ 'PipingSoilProfileEntityId' INTEGER NOT NULL,
'StochasticSoilModelEntityId' INTEGER NOT NULL,
'Probability' REAL NOT NULL,
'Order' INT (4) NOT NULL,
- CONSTRAINT 'FK_StochasticSoilProfileEntity_SoilProfileEntity' FOREIGN KEY ('SoilProfileEntityId') REFERENCES 'SoilProfileEntity' ('SoilProfileEntityId') ON DELETE Cascade ON UPDATE Cascade,
- CONSTRAINT 'FK_StochasticSoilProfileEntity_StochasticSoilModelEntity' FOREIGN KEY ('StochasticSoilModelEntityId') REFERENCES 'StochasticSoilModelEntity' ('StochasticSoilModelEntityId') ON DELETE Cascade ON UPDATE Cascade
+ CONSTRAINT 'FK_PipingStochasticSoilProfileEntity_SoilProfileEntity' FOREIGN KEY ('PipingSoilProfileEntityId') REFERENCES 'PipingSoilProfileEntity' ('PipingSoilProfileEntityId') ON DELETE Cascade ON UPDATE Cascade,
+ CONSTRAINT 'FK_PipingStochasticSoilProfileEntity_StochasticSoilModelEntity' FOREIGN KEY ('StochasticSoilModelEntityId') REFERENCES 'StochasticSoilModelEntity' ('StochasticSoilModelEntityId') ON DELETE Cascade ON UPDATE Cascade
)
;
@@ -641,9 +641,9 @@
)
;
-CREATE TABLE 'CharacteristicPointEntity'
+CREATE TABLE 'PipingCharacteristicPointEntity'
(
- 'CharacteristicPointEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ 'PipingCharacteristicPointEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
'SurfaceLineEntityId' INTEGER NOT NULL,
'Type' TINYINT (1) NOT NULL, -- Enum: 1 = DikeToeAtRiver, 2 = DikeToeAtPolder, 3 = DitchDikeSide, 4 = BottomDitchDikeSide, 5 = BottomDitchPolderSide, 6 = DitchPolderSide
'X' REAL,
@@ -1633,15 +1633,15 @@
CREATE INDEX 'IXFK_GrassCoverErosionInwardsDikeHeightOutputEntity_GrassCoverErosionInwardsOutputEntity'
ON 'GrassCoverErosionInwardsDikeHeightOutputEntity' ('GrassCoverErosionInwardsOutputEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteGrassCoverErosionInwardsDikeHeightOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
- AFTER DELETE
- ON GrassCoverErosionInwardsDikeHeightOutputEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM GeneralResultFaultTreeIllustrationPointEntity
- WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
- AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
+CREATE TRIGGER [TR_AfterDeleteGrassCoverErosionInwardsDikeHeightOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
+ AFTER DELETE
+ ON GrassCoverErosionInwardsDikeHeightOutputEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM GeneralResultFaultTreeIllustrationPointEntity
+ WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
+ AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
END;
;
@@ -1745,12 +1745,12 @@
ON 'GrassCoverErosionOutwardsFailureMechanismMetaEntity' ('FailureMechanismEntityId' ASC)
;
-CREATE INDEX 'IXFK_StochasticSoilProfileEntity_SoilProfileEntity'
- ON 'StochasticSoilProfileEntity' ('SoilProfileEntityId' ASC)
+CREATE INDEX 'IXFK_PipingStochasticSoilProfileEntity_SoilProfileEntity'
+ ON 'PipingStochasticSoilProfileEntity' ('PipingSoilProfileEntityId' ASC)
;
-CREATE INDEX 'IXFK_StochasticSoilProfileEntity_StochasticSoilModelEntity'
- ON 'StochasticSoilProfileEntity' ('StochasticSoilModelEntityId' ASC)
+CREATE INDEX 'IXFK_PipingStochasticSoilProfileEntity_StochasticSoilModelEntity'
+ ON 'PipingStochasticSoilProfileEntity' ('StochasticSoilModelEntityId' ASC)
;
CREATE INDEX 'IXFK_StochasticSoilModelEntity_FailureMechanismEntity'
@@ -1762,7 +1762,7 @@
;
CREATE INDEX 'IXFK_SurfaceLinePointEntity_SurfaceLineEntity'
- ON 'CharacteristicPointEntity' ('SurfaceLineEntityId' ASC)
+ ON 'PipingCharacteristicPointEntity' ('SurfaceLineEntityId' ASC)
;
CREATE INDEX 'IXFK_PipingCalculationOutputEntity_PipingCalculationEntity'
@@ -1876,15 +1876,15 @@
CREATE INDEX 'IXFK_GrassCoverErosionInwardsOutputEntity_GrassCoverErosionInwardsCalculationEntity'
ON 'GrassCoverErosionInwardsOutputEntity' ('GrassCoverErosionInwardsCalculationEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteGrassCoverErosionInwardsOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
- AFTER DELETE
- ON GrassCoverErosionInwardsOutputEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM GeneralResultFaultTreeIllustrationPointEntity
- WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
- AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
+CREATE TRIGGER [TR_AfterDeleteGrassCoverErosionInwardsOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
+ AFTER DELETE
+ ON GrassCoverErosionInwardsOutputEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM GeneralResultFaultTreeIllustrationPointEntity
+ WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
+ AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
END;
;
@@ -1947,15 +1947,15 @@
CREATE INDEX 'IXFK_HeightStructuresOutputEntity_HeightStructuresCalculationEntity'
ON 'HeightStructuresOutputEntity' ('HeightStructuresCalculationEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteHeightStructuresOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
- AFTER DELETE
- ON HeightStructuresOutputEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM GeneralResultFaultTreeIllustrationPointEntity
- WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
- AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
+CREATE TRIGGER [TR_AfterDeleteHeightStructuresOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
+ AFTER DELETE
+ ON HeightStructuresOutputEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM GeneralResultFaultTreeIllustrationPointEntity
+ WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
+ AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
END;
;
@@ -2002,15 +2002,15 @@
CREATE INDEX 'IXFK_ClosingStructuresOutputEntity_ClosingStructuresCalculationEntity'
ON 'ClosingStructuresOutputEntity' ('ClosingStructuresCalculationEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteClosingStructuresOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
- AFTER DELETE
- ON ClosingStructuresOutputEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM GeneralResultFaultTreeIllustrationPointEntity
- WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
- AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
+CREATE TRIGGER [TR_AfterDeleteClosingStructuresOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
+ AFTER DELETE
+ ON ClosingStructuresOutputEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM GeneralResultFaultTreeIllustrationPointEntity
+ WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
+ AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
END;
;
@@ -2021,15 +2021,15 @@
CREATE INDEX 'IXFK_StabilityPointStructuresOutputEntity_StabilityPointStructuresCalculationEntity'
ON 'StabilityPointStructuresOutputEntity' ('StabilityPointStructuresCalculationEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteStabilityPointStructuresOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
- AFTER DELETE
- ON StabilityPointStructuresOutputEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM GeneralResultFaultTreeIllustrationPointEntity
- WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
- AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
+CREATE TRIGGER [TR_AfterDeleteStabilityPointStructuresOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
+ AFTER DELETE
+ ON StabilityPointStructuresOutputEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM GeneralResultFaultTreeIllustrationPointEntity
+ WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
+ AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
END;
;
@@ -2040,15 +2040,15 @@
CREATE INDEX 'IXFK_HydraulicLocationOutputEntity_HydraulicLocationEntity'
ON 'HydraulicLocationOutputEntity' ('HydraulicLocationEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteHydraulicLocationOutputEntity_RemoveGeneralResultSubMechanismIllustrationPointEntity]
- AFTER DELETE
- ON HydraulicLocationOutputEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM GeneralResultSubMechanismIllustrationPointEntity
- WHERE OLD.GeneralResultSubMechanismIllustrationPointEntityId IS NOT NULL
- AND GeneralResultSubMechanismIllustrationPointEntityId IS OLD.GeneralResultSubMechanismIllustrationPointEntityId;
+CREATE TRIGGER [TR_AfterDeleteHydraulicLocationOutputEntity_RemoveGeneralResultSubMechanismIllustrationPointEntity]
+ AFTER DELETE
+ ON HydraulicLocationOutputEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM GeneralResultSubMechanismIllustrationPointEntity
+ WHERE OLD.GeneralResultSubMechanismIllustrationPointEntityId IS NOT NULL
+ AND GeneralResultSubMechanismIllustrationPointEntityId IS OLD.GeneralResultSubMechanismIllustrationPointEntityId;
END;
;
@@ -2059,15 +2059,15 @@
CREATE INDEX 'IXFK_GrassCoverErosionOutwardsHydraulicLocationOutputEntity_GrassCoverErosionOutwardsHydraulicLocationEntity'
ON 'GrassCoverErosionOutwardsHydraulicLocationOutputEntity' ('GrassCoverErosionOutwardsHydraulicLocationEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteGrassCoverErosionOutwardsHydraulicLocationOutputEntity_RemoveGeneralResultSubMechanismIllustrationPointEntity]
- AFTER DELETE
- ON GrassCoverErosionOutwardsHydraulicLocationOutputEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM GeneralResultSubMechanismIllustrationPointEntity
- WHERE OLD.GeneralResultSubMechanismIllustrationPointEntityId IS NOT NULL
- AND GeneralResultSubMechanismIllustrationPointEntityId IS OLD.GeneralResultSubMechanismIllustrationPointEntityId;
+CREATE TRIGGER [TR_AfterDeleteGrassCoverErosionOutwardsHydraulicLocationOutputEntity_RemoveGeneralResultSubMechanismIllustrationPointEntity]
+ AFTER DELETE
+ ON GrassCoverErosionOutwardsHydraulicLocationOutputEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM GeneralResultSubMechanismIllustrationPointEntity
+ WHERE OLD.GeneralResultSubMechanismIllustrationPointEntityId IS NOT NULL
+ AND GeneralResultSubMechanismIllustrationPointEntityId IS OLD.GeneralResultSubMechanismIllustrationPointEntityId;
END;
;
@@ -2094,15 +2094,15 @@
CREATE INDEX 'IXFK_GrassCoverErosionInwardsOvertoppingRateOutputEntity_GrassCoverErosionInwardsOutputEntity'
ON 'GrassCoverErosionInwardsOvertoppingRateOutputEntity' ('GrassCoverErosionInwardsOutputEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteGrassCoverErosionInwardsOvertoppingRateOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
- AFTER DELETE
- ON GrassCoverErosionInwardsOvertoppingRateOutputEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM GeneralResultFaultTreeIllustrationPointEntity
- WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
- AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
+CREATE TRIGGER [TR_AfterDeleteGrassCoverErosionInwardsOvertoppingRateOutputEntity_RemoveGeneralResultFaultTreeIllustrationPointEntity]
+ AFTER DELETE
+ ON GrassCoverErosionInwardsOvertoppingRateOutputEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM GeneralResultFaultTreeIllustrationPointEntity
+ WHERE OLD.GeneralResultFaultTreeIllustrationPointEntityId IS NOT NULL
+ AND GeneralResultFaultTreeIllustrationPointEntityId IS OLD.GeneralResultFaultTreeIllustrationPointEntityId;
END;
;
@@ -2117,15 +2117,15 @@
CREATE INDEX 'IXFK_GeneralResultSubMechanismIllustrationPointStochastEntity_StochastEntity'
ON 'GeneralResultSubMechanismIllustrationPointStochastEntity' ('StochastEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteGeneralResultSubMechanismIllustrationPointStochastEntity_RemoveStochastEntity]
- AFTER DELETE
- ON GeneralResultSubMechanismIllustrationPointStochastEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM StochastEntity
- WHERE OLD.StochastEntityId IS NOT NULL
- AND StochastEntityId IS OLD.StochastEntityId;
+CREATE TRIGGER [TR_AfterDeleteGeneralResultSubMechanismIllustrationPointStochastEntity_RemoveStochastEntity]
+ AFTER DELETE
+ ON GeneralResultSubMechanismIllustrationPointStochastEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM StochastEntity
+ WHERE OLD.StochastEntityId IS NOT NULL
+ AND StochastEntityId IS OLD.StochastEntityId;
END;
;
@@ -2140,15 +2140,15 @@
CREATE INDEX 'IXFK_FaultTreeIllustrationPointStochastEntity_StochastEntity'
ON 'FaultTreeIllustrationPointStochastEntity' ('StochastEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteFaultTreeIllustrationPointStochastEntity_RemoveStochastEntity]
- AFTER DELETE
- ON FaultTreeIllustrationPointStochastEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM StochastEntity
- WHERE OLD.StochastEntityId IS NOT NULL
- AND StochastEntityId IS OLD.StochastEntityId;
+CREATE TRIGGER [TR_AfterDeleteFaultTreeIllustrationPointStochastEntity_RemoveStochastEntity]
+ AFTER DELETE
+ ON FaultTreeIllustrationPointStochastEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM StochastEntity
+ WHERE OLD.StochastEntityId IS NOT NULL
+ AND StochastEntityId IS OLD.StochastEntityId;
END;
;
@@ -2159,15 +2159,15 @@
CREATE INDEX 'IXFK_GeneralResultFaultTreeIllustrationPointStochastEntity_StochastEntity'
ON 'GeneralResultFaultTreeIllustrationPointStochastEntity' ('StochastEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteGeneralResultFaultTreeIllustrationPointStochastEntity_RemoveStochastEntity]
- AFTER DELETE
- ON GeneralResultFaultTreeIllustrationPointStochastEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM StochastEntity
- WHERE OLD.StochastEntityId IS NOT NULL
- AND StochastEntityId IS OLD.StochastEntityId;
+CREATE TRIGGER [TR_AfterDeleteGeneralResultFaultTreeIllustrationPointStochastEntity_RemoveStochastEntity]
+ AFTER DELETE
+ ON GeneralResultFaultTreeIllustrationPointStochastEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM StochastEntity
+ WHERE OLD.StochastEntityId IS NOT NULL
+ AND StochastEntityId IS OLD.StochastEntityId;
END;
;
@@ -2178,15 +2178,15 @@
CREATE INDEX 'IXFK_TopLevelSubMechanismIllustrationPointEntity_SubMechanismIllustrationPointEntity'
ON 'TopLevelSubMechanismIllustrationPointEntity' ('SubMechanismIllustrationPointEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteTopLevelSubMechanismIllustrationPointEntity_RemoveSubMechanismIllustrationPointEntity]
- AFTER DELETE
- ON TopLevelSubMechanismIllustrationPointEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM SubMechanismIllustrationPointEntity
- WHERE OLD.SubMechanismIllustrationPointEntityId IS NOT NULL
- AND SubMechanismIllustrationPointEntityId IS OLD.SubMechanismIllustrationPointEntityId;
+CREATE TRIGGER [TR_AfterDeleteTopLevelSubMechanismIllustrationPointEntity_RemoveSubMechanismIllustrationPointEntity]
+ AFTER DELETE
+ ON TopLevelSubMechanismIllustrationPointEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM SubMechanismIllustrationPointEntity
+ WHERE OLD.SubMechanismIllustrationPointEntityId IS NOT NULL
+ AND SubMechanismIllustrationPointEntityId IS OLD.SubMechanismIllustrationPointEntityId;
END;
;
@@ -2197,15 +2197,15 @@
CREATE INDEX 'IXFK_TopLevelFaultTreeIllustrationPointEntity_GeneralResultFaultTreeIllustrationPointEntity'
ON 'TopLevelFaultTreeIllustrationPointEntity' ('GeneralResultFaultTreeIllustrationPointEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteTopLevelFaultTreeIllustrationPointEntity_RemoveFaultTreeIllustrationPointEntity]
- AFTER DELETE
- ON TopLevelFaultTreeIllustrationPointEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM FaultTreeIllustrationPointEntity
- WHERE OLD.FaultTreeIllustrationPointEntityId IS NOT NULL
- AND FaultTreeIllustrationPointEntityId IS OLD.FaultTreeIllustrationPointEntityId;
+CREATE TRIGGER [TR_AfterDeleteTopLevelFaultTreeIllustrationPointEntity_RemoveFaultTreeIllustrationPointEntity]
+ AFTER DELETE
+ ON TopLevelFaultTreeIllustrationPointEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM FaultTreeIllustrationPointEntity
+ WHERE OLD.FaultTreeIllustrationPointEntityId IS NOT NULL
+ AND FaultTreeIllustrationPointEntityId IS OLD.FaultTreeIllustrationPointEntityId;
END;
;
@@ -2220,14 +2220,14 @@
CREATE INDEX 'IXFK_FaultTreeIllustrationPointEntity_SubMechanismIllustrationPointEntity'
ON 'FaultTreeSubmechanismIllustrationPointEntity' ('SubMechanismIllustrationPointEntityId' ASC)
;
-CREATE TRIGGER [TR_AfterDeleteFaultTreeSubmechanismIllustrationPointEntity_RemoveSubmechanismIllustrationPointEntity]
- AFTER DELETE
- ON FaultTreeSubmechanismIllustrationPointEntity
- FOR EACH ROW
-BEGIN
- DELETE
- FROM SubmechanismIllustrationPointEntity
- WHERE OLD.SubmechanismIllustrationPointEntityId IS NOT NULL
- AND SubmechanismIllustrationPointEntityId IS OLD.SubmechanismIllustrationPointEntityId;
+CREATE TRIGGER [TR_AfterDeleteFaultTreeSubmechanismIllustrationPointEntity_RemoveSubmechanismIllustrationPointEntity]
+ AFTER DELETE
+ ON FaultTreeSubmechanismIllustrationPointEntity
+ FOR EACH ROW
+BEGIN
+ DELETE
+ FROM SubmechanismIllustrationPointEntity
+ WHERE OLD.SubmechanismIllustrationPointEntityId IS NOT NULL
+ AND SubmechanismIllustrationPointEntityId IS OLD.SubmechanismIllustrationPointEntityId;
END;
;
Index: Application/Ringtoets/src/Application.Ringtoets.Migration.Core/EmbeddedResources/Migration_17.1_17.2.sql
===================================================================
diff -u -r15a128affb564b2ccafee3402765b3a87fd81c78 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Migration.Core/EmbeddedResources/Migration_17.1_17.2.sql (.../Migration_17.1_17.2.sql) (revision 15a128affb564b2ccafee3402765b3a87fd81c78)
+++ Application/Ringtoets/src/Application.Ringtoets.Migration.Core/EmbeddedResources/Migration_17.1_17.2.sql (.../Migration_17.1_17.2.sql) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -321,7 +321,21 @@
INSERT INTO BackgroundDataEntity SELECT * FROM [SOURCEPROJECT].BackgroundDataEntity;
INSERT INTO BackgroundDataMetaEntity SELECT * FROM [SOURCEPROJECT].BackgroundDataMetaEntity;
INSERT INTO CalculationGroupEntity SELECT * FROM [SOURCEPROJECT].CalculationGroupEntity;
-INSERT INTO CharacteristicPointEntity SELECT * FROM [SOURCEPROJECT].CharacteristicPointEntity;
+INSERT INTO PipingCharacteristicPointEntity (
+ [PipingCharacteristicPointEntityId],
+ [SurfaceLineEntityId],
+ [Type],
+ [X],
+ [Y],
+ [Z])
+SELECT
+ [CharacteristicPointEntityId],
+ [SurfaceLineEntityId],
+ [Type],
+ [X],
+ [Y],
+ [Z]
+ FROM [SOURCEPROJECT].CharacteristicPointEntity;
INSERT INTO ClosingStructureEntity (
[ClosingStructureEntityId],
[FailureMechanismEntityId],
@@ -1096,9 +1110,39 @@
INSERT INTO PipingSemiProbabilisticOutputEntity SELECT * FROM [SOURCEPROJECT].PipingSemiProbabilisticOutputEntity;
INSERT INTO PipingStructureSectionResultEntity SELECT * FROM [SOURCEPROJECT].PipingStructureSectionResultEntity;
INSERT INTO ProjectEntity SELECT * FROM [SOURCEPROJECT].ProjectEntity;
-INSERT INTO SoilLayerEntity SELECT * FROM [SOURCEPROJECT].SoilLayerEntity;
-INSERT INTO SoilProfileEntity(
- [SoilProfileEntityId],
+INSERT INTO PipingSoilLayerEntity(
+ [PipingSoilLayerEntityId],
+ [PipingSoilProfileEntityId],
+ [Top],
+ [IsAquifer],
+ [Color],
+ [MaterialName],
+ [BelowPhreaticLevelMean],
+ [BelowPhreaticLevelDeviation],
+ [DiameterD70Mean],
+ [DiameterD70CoefficientOfVariation],
+ [BelowPhreaticLevelShift],
+ [PermeabilityMean],
+ [PermeabilityCoefficientOfVariation],
+ [Order])
+SELECT
+ [SoilLayerEntityId],
+ [SoilProfileEntityId],
+ [Top],
+ [IsAquifer],
+ [Color],
+ [MaterialName],
+ [BelowPhreaticLevelMean],
+ [BelowPhreaticLevelDeviation],
+ [DiameterD70Mean],
+ [DiameterD70CoefficientOfVariation],
+ [BelowPhreaticLevelShift],
+ [PermeabilityMean],
+ [PermeabilityCoefficientOfVariation],
+ [Order]
+ FROM [SOURCEPROJECT].SoilLayerEntity;
+INSERT INTO PipingSoilProfileEntity(
+ [PipingSoilProfileEntityId],
[Bottom],
[Name],
[SourceType])
@@ -1117,7 +1161,7 @@
WHERE SSP.SoilProfileEntityId IS SP.SoilProfileEntityId
LIMIT 1
) AS [SourceType]
-FROM [SOURCEPROJECT].SoilProfileEntity SP;
+ FROM [SOURCEPROJECT].SoilProfileEntity SP;
INSERT INTO StabilityPointStructureEntity (
[StabilityPointStructureEntityId],
[FailureMechanismEntityId],
@@ -1421,8 +1465,7 @@
[FailureMechanismSectionEntityId],
[StabilityPointStructuresCalculationEntityId],
[LayerOne],
- [LayerThree]
-)
+ [LayerThree])
SELECT
[StabilityPointStructuresSectionResultEntityId],
[FailureMechanismSectionEntityId],
@@ -1465,9 +1508,9 @@
[StochasticSoilModelSegmentPointXml],
[Order]
FROM [SOURCEPROJECT].StochasticSoilModelEntity;
-INSERT INTO StochasticSoilProfileEntity(
- [StochasticSoilProfileEntityId],
- [SoilProfileEntityId],
+INSERT INTO PipingStochasticSoilProfileEntity(
+ [PipingStochasticSoilProfileEntityId],
+ [PipingSoilProfileEntityId],
[StochasticSoilModelEntityId],
[Probability],
[Order])
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Application.Ringtoets.Storage.csproj
===================================================================
diff -u -r26f527fb809a2325c8f883ece9da01a8f8040eb3 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Application.Ringtoets.Storage.csproj (.../Application.Ringtoets.Storage.csproj) (revision 26f527fb809a2325c8f883ece9da01a8f8040eb3)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Application.Ringtoets.Storage.csproj (.../Application.Ringtoets.Storage.csproj) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -102,9 +102,6 @@
RingtoetsEntities.tt
-
- RingtoetsEntities.tt
-
RingtoetsEntities.tt
@@ -250,6 +247,9 @@
RingtoetsEntities.tt
+
+ RingtoetsEntities.tt
+
RingtoetsEntities.tt
@@ -259,18 +259,21 @@
RingtoetsEntities.tt
-
+
RingtoetsEntities.tt
-
+
RingtoetsEntities.tt
-
+
RingtoetsEntities.tt
-
+
RingtoetsEntities.tt
+
+ RingtoetsEntities.tt
+
RingtoetsEntities.tt
@@ -304,9 +307,6 @@
RingtoetsEntities.tt
-
- RingtoetsEntities.tt
-
RingtoetsEntities.tt
@@ -464,10 +464,10 @@
-
-
+
+
-
+
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs
===================================================================
diff -u -r26f527fb809a2325c8f883ece9da01a8f8040eb3 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs (.../PersistenceRegistry.cs) (revision 26f527fb809a2325c8f883ece9da01a8f8040eb3)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs (.../PersistenceRegistry.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -61,11 +61,11 @@
private readonly Dictionary pipingStochasticSoilModels =
CreateDictionary();
- private readonly Dictionary pipingStochasticSoilProfiles =
- CreateDictionary();
+ private readonly Dictionary pipingStochasticSoilProfiles =
+ CreateDictionary();
- private readonly Dictionary pipingSoilProfiles =
- CreateDictionary();
+ private readonly Dictionary pipingSoilProfiles =
+ CreateDictionary();
private readonly Dictionary surfaceLines =
CreateDictionary();
@@ -143,11 +143,7 @@
/// to be registered.
/// The to
/// be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(GrassCoverErosionInwardsCalculationEntity entity, GrassCoverErosionInwardsCalculation model)
{
Register(grassCoverErosionInwardsCalculations, entity, model);
@@ -159,11 +155,7 @@
///
/// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(FailureMechanismSectionEntity entity, FailureMechanismSection model)
{
Register(failureMechanismSections, entity, model);
@@ -175,11 +167,7 @@
///
/// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(DikeProfileEntity entity, DikeProfile model)
{
Register(dikeProfiles, entity, model);
@@ -191,11 +179,7 @@
///
/// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(ForeshoreProfileEntity entity, ForeshoreProfile model)
{
Register(foreshoreProfiles, entity, model);
@@ -207,11 +191,7 @@
///
/// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(HydraulicLocationEntity entity, HydraulicBoundaryLocation model)
{
Register(hydraulicLocations, entity, model);
@@ -223,11 +203,7 @@
///
/// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(GrassCoverErosionOutwardsHydraulicLocationEntity entity, HydraulicBoundaryLocation model)
{
Register(hydraulicLocations, entity, model);
@@ -239,11 +215,7 @@
///
/// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(DuneLocationEntity entity, DuneLocation model)
{
Register(duneLocations, entity, model);
@@ -255,11 +227,7 @@
///
/// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(StochasticSoilModelEntity entity, PipingStochasticSoilModel model)
{
Register(pipingStochasticSoilModels, entity, model);
@@ -269,14 +237,10 @@
/// Registers a create operation for and the
/// that was constructed with the information.
///
- /// The to be registered.
+ /// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
- internal void Register(StochasticSoilProfileEntity entity, PipingStochasticSoilProfile model)
+ /// Thrown any of the input parameters is null.
+ internal void Register(PipingStochasticSoilProfileEntity entity, PipingStochasticSoilProfile model)
{
Register(pipingStochasticSoilProfiles, entity, model);
}
@@ -285,14 +249,10 @@
/// Registers a create operation for and the
/// that was constructed with the information.
///
- /// The to be registered.
+ /// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
- internal void Register(SoilProfileEntity entity, PipingSoilProfile model)
+ /// Thrown any of the input parameters is null.
+ internal void Register(PipingSoilProfileEntity entity, PipingSoilProfile model)
{
Register(pipingSoilProfiles, entity, model);
}
@@ -303,11 +263,7 @@
///
/// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(SurfaceLineEntity entity, PipingSurfaceLine model)
{
Register(surfaceLines, entity, model);
@@ -319,11 +275,7 @@
///
/// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(HeightStructureEntity entity, HeightStructure model)
{
Register(heightStructures, entity, model);
@@ -335,11 +287,7 @@
///
/// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(ClosingStructureEntity entity, ClosingStructure model)
{
Register(closingStructures, entity, model);
@@ -351,11 +299,7 @@
///
/// The to be registered.
/// The to be registered.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown any of the input parameters is null.
internal void Register(StabilityPointStructureEntity entity, StabilityPointStructure model)
{
Register(stabilityPointStructures, entity, model);
@@ -622,35 +566,35 @@
}
///
- /// Obtains the which was registered for
+ /// Obtains the which was registered for
/// the given .
///
/// The for which a create
/// operation has been registered.
- /// The created .
+ /// The created .
/// Thrown when is null.
/// Thrown when no create operation
/// has been registered for .
/// Use to find out whether
/// a create/create operation has been registered for .
- internal StochasticSoilProfileEntity Get(PipingStochasticSoilProfile model)
+ internal PipingStochasticSoilProfileEntity Get(PipingStochasticSoilProfile model)
{
return Get(pipingStochasticSoilProfiles, model);
}
///
- /// Obtains the which was registered for the given
+ /// Obtains the which was registered for the given
/// .
///
- /// The for which a create
+ /// The for which a create
/// operation has been registered.
/// The constructed .
/// Thrown when is null.
/// Thrown when no create operation
/// has been registered for .
/// Use to find out whether a
/// create operation has been registered for .
- internal SoilProfileEntity Get(PipingSoilProfile model)
+ internal PipingSoilProfileEntity Get(PipingSoilProfile model)
{
return Get(pipingSoilProfiles, model);
}
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingCalculationScenarioCreateExtensions.cs
===================================================================
diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingCalculationScenarioCreateExtensions.cs (.../PipingCalculationScenarioCreateExtensions.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingCalculationScenarioCreateExtensions.cs (.../PipingCalculationScenarioCreateExtensions.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -86,7 +86,7 @@
if (inputParameters.StochasticSoilProfile != null)
{
- entity.StochasticSoilProfileEntity = registry.Get(inputParameters.StochasticSoilProfile);
+ entity.PipingStochasticSoilProfileEntity = registry.Get(inputParameters.StochasticSoilProfile);
}
entity.ExitPointL = inputParameters.ExitPointL.Value.ToNaNAsNull();
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingSoilLayerCreateExtensions.cs
===================================================================
diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingSoilLayerCreateExtensions.cs (.../PipingSoilLayerCreateExtensions.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingSoilLayerCreateExtensions.cs (.../PipingSoilLayerCreateExtensions.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -27,19 +27,19 @@
namespace Application.Ringtoets.Storage.Create.Piping
{
///
- /// Extension methods for related to creating a .
+ /// Extension methods for related to creating a .
///
internal static class PipingSoilLayerCreateExtensions
{
///
- /// Creates a based on the information of the .
+ /// Creates a based on the information of the .
///
/// The layer to create a database entity for.
/// Index at which this instance resides inside its parent container.
- /// A new .
- internal static SoilLayerEntity Create(this PipingSoilLayer layer, int order)
+ /// A new .
+ internal static PipingSoilLayerEntity Create(this PipingSoilLayer layer, int order)
{
- var entity = new SoilLayerEntity
+ var entity = new PipingSoilLayerEntity
{
IsAquifer = Convert.ToByte(layer.IsAquifer),
Top = layer.Top,
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingSoilProfileCreateExtensions.cs
===================================================================
diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingSoilProfileCreateExtensions.cs (.../PipingSoilProfileCreateExtensions.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingSoilProfileCreateExtensions.cs (.../PipingSoilProfileCreateExtensions.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -27,19 +27,20 @@
namespace Application.Ringtoets.Storage.Create.Piping
{
///
- /// Extension methods for related to creating a .
+ /// Extension methods for related to creating a .
///
internal static class PipingSoilProfileCreateExtensions
{
///
- /// Creates a based on the information of the .
+ /// Creates a based on the information of the .
///
/// The profile to create a database entity for.
/// The object keeping track of create operations.
- /// A new or one from the if it
- /// was created for the earlier.
+ /// A new or one from the
+ /// if it was created for the earlier.
/// Thrown when is null.
- internal static SoilProfileEntity Create(this PipingSoilProfile profile, PersistenceRegistry registry)
+ internal static PipingSoilProfileEntity Create(this PipingSoilProfile profile,
+ PersistenceRegistry registry)
{
if (registry == null)
{
@@ -50,7 +51,7 @@
{
return registry.Get(profile);
}
- var entity = new SoilProfileEntity
+ var entity = new PipingSoilProfileEntity
{
Name = profile.Name.DeepClone(),
Bottom = profile.Bottom.ToNaNAsNull()
@@ -62,12 +63,13 @@
return entity;
}
- private static void AddEntitiesForPipingSoilLayers(PipingSoilProfile profile, SoilProfileEntity entity)
+ private static void AddEntitiesForPipingSoilLayers(PipingSoilProfile profile,
+ PipingSoilProfileEntity entity)
{
var index = 0;
foreach (PipingSoilLayer pipingSoilLayer in profile.Layers)
{
- entity.SoilLayerEntities.Add(pipingSoilLayer.Create(index++));
+ entity.PipingSoilLayerEntities.Add(pipingSoilLayer.Create(index++));
}
}
}
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingStochasticSoilModelCreateExtensions.cs
===================================================================
diff -u -r26f527fb809a2325c8f883ece9da01a8f8040eb3 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingStochasticSoilModelCreateExtensions.cs (.../PipingStochasticSoilModelCreateExtensions.cs) (revision 26f527fb809a2325c8f883ece9da01a8f8040eb3)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingStochasticSoilModelCreateExtensions.cs (.../PipingStochasticSoilModelCreateExtensions.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -74,7 +74,7 @@
for (var i = 0; i < model.StochasticSoilProfiles.Count; i++)
{
PipingStochasticSoilProfile stochasticSoilProfile = model.StochasticSoilProfiles[i];
- entity.StochasticSoilProfileEntities.Add(stochasticSoilProfile.Create(registry, i));
+ entity.PipingStochasticSoilProfileEntities.Add(stochasticSoilProfile.Create(registry, i));
}
}
}
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingStochasticSoilProfileCreateExtensions.cs
===================================================================
diff -u -r26f527fb809a2325c8f883ece9da01a8f8040eb3 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingStochasticSoilProfileCreateExtensions.cs (.../PipingStochasticSoilProfileCreateExtensions.cs) (revision 26f527fb809a2325c8f883ece9da01a8f8040eb3)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingStochasticSoilProfileCreateExtensions.cs (.../PipingStochasticSoilProfileCreateExtensions.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -27,27 +27,27 @@
{
///
/// Extension methods for related to creating
- /// a .
+ /// a .
///
internal static class PipingStochasticSoilProfileCreateExtensions
{
///
- /// Creates a based on the information of the
+ /// Creates a based on the information of the
/// .
///
/// The profile to create a database entity for.
/// The object keeping track of create operations.
/// Index at which this instance resides inside its parent container.
- /// A new .
+ /// A new .
/// Thrown when is null.
- internal static StochasticSoilProfileEntity Create(this PipingStochasticSoilProfile profile,
- PersistenceRegistry registry,
- int order)
+ internal static PipingStochasticSoilProfileEntity Create(this PipingStochasticSoilProfile profile,
+ PersistenceRegistry registry,
+ int order)
{
- var entity = new StochasticSoilProfileEntity
+ var entity = new PipingStochasticSoilProfileEntity
{
Probability = profile.Probability,
- SoilProfileEntity = profile.SoilProfile.Create(registry),
+ PipingSoilProfileEntity = profile.SoilProfile.Create(registry),
Order = order
};
if (registry.Contains(profile))
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingSurfaceLineCreateExtensions.cs
===================================================================
diff -u -raa49537188229065df91b1a931f088c32115702a -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingSurfaceLineCreateExtensions.cs (.../PipingSurfaceLineCreateExtensions.cs) (revision aa49537188229065df91b1a931f088c32115702a)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Piping/PipingSurfaceLineCreateExtensions.cs (.../PipingSurfaceLineCreateExtensions.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -82,15 +82,15 @@
};
foreach (Tuple characteristicPointToSave in characteristicPointAssociations.Where(t => t.Item1 != null))
{
- CharacteristicPointEntity characteristicPointEntity = CreateCharacteristicPointEntity(characteristicPointToSave.Item1,
- characteristicPointToSave.Item2);
- entity.CharacteristicPointEntities.Add(characteristicPointEntity);
+ PipingCharacteristicPointEntity characteristicPointEntity = CreateCharacteristicPointEntity(characteristicPointToSave.Item1,
+ characteristicPointToSave.Item2);
+ entity.PipingCharacteristicPointEntities.Add(characteristicPointEntity);
}
}
- private static CharacteristicPointEntity CreateCharacteristicPointEntity(Point3D point, CharacteristicPointType type)
+ private static PipingCharacteristicPointEntity CreateCharacteristicPointEntity(Point3D point, CharacteristicPointType type)
{
- var entity = new CharacteristicPointEntity
+ var entity = new PipingCharacteristicPointEntity
{
Type = (byte) type,
X = point.X.ToNaNAsNull(),
Fisheye: Tag a096cb901099c85dbaafa2dba6c69288464c248e refers to a dead (removed) revision in file `Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/CharacteristicPointEntity.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PartialRingtoetsEntities.cs
===================================================================
diff -u -ra05124a7d94f552b49699ed28134ad148ebfd2b9 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PartialRingtoetsEntities.cs (.../PartialRingtoetsEntities.cs) (revision a05124a7d94f552b49699ed28134ad148ebfd2b9)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PartialRingtoetsEntities.cs (.../PartialRingtoetsEntities.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -47,7 +47,6 @@
BackgroundDataEntities.Load();
BackgroundDataMetaEntities.Load();
CalculationGroupEntities.Load();
- CharacteristicPointEntities.Load();
ClosingStructureEntities.Load();
ClosingStructuresCalculationEntities.Load();
ClosingStructuresFailureMechanismMetaEntities.Load();
@@ -89,12 +88,14 @@
ProjectEntities.Load();
PipingCalculationEntities.Load();
PipingCalculationOutputEntities.Load();
+ PipingCharacteristicPointEntities.Load();
PipingFailureMechanismMetaEntities.Load();
PipingSectionResultEntities.Load();
PipingSemiProbabilisticOutputEntities.Load();
+ PipingSoilLayerEntities.Load();
+ PipingSoilProfileEntities.Load();
PipingStructureSectionResultEntities.Load();
- SoilLayerEntities.Load();
- SoilProfileEntities.Load();
+ PipingStochasticSoilProfileEntities.Load();
StabilityPointStructureEntities.Load();
StabilityPointStructuresCalculationEntities.Load();
StabilityPointStructuresFailureMechanismMetaEntities.Load();
@@ -105,7 +106,6 @@
StabilityStoneCoverWaveConditionsCalculationEntities.Load();
StabilityStoneCoverWaveConditionsOutputEntities.Load();
StochasticSoilModelEntities.Load();
- StochasticSoilProfileEntities.Load();
StrengthStabilityLengthwiseConstructionSectionResultEntities.Load();
SurfaceLineEntities.Load();
TechnicalInnovationSectionResultEntities.Load();
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationEntity.cs
===================================================================
diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationEntity.cs (.../PipingCalculationEntity.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationEntity.cs (.../PipingCalculationEntity.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -64,7 +64,7 @@
public virtual CalculationGroupEntity CalculationGroupEntity { get; set; }
public virtual HydraulicLocationEntity HydraulicLocationEntity { get; set; }
public virtual SurfaceLineEntity SurfaceLineEntity { get; set; }
- public virtual StochasticSoilProfileEntity StochasticSoilProfileEntity { get; set; }
+ public virtual PipingStochasticSoilProfileEntity PipingStochasticSoilProfileEntity { get; set; }
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection PipingCalculationOutputEntities { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCharacteristicPointEntity.cs
===================================================================
diff -u
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCharacteristicPointEntity.cs (revision 0)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCharacteristicPointEntity.cs (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -0,0 +1,44 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.
+//
+// This program 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.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+//------------------------------------------------------------------------------
+//
+// This code was generated from a template.
+//
+// Manual changes to this file may cause unexpected behavior in your application.
+// Manual changes to this file will be overwritten if the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Application.Ringtoets.Storage.DbContext
+{
+ public class PipingCharacteristicPointEntity
+ {
+ public long PipingCharacteristicPointEntityId { get; set; }
+ public long SurfaceLineEntityId { get; set; }
+ public byte Type { get; set; }
+ public double? X { get; set; }
+ public double? Y { get; set; }
+ public double? Z { get; set; }
+
+ public virtual SurfaceLineEntity SurfaceLineEntity { get; set; }
+ }
+}
\ No newline at end of file
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSoilLayerEntity.cs
===================================================================
diff -u
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSoilLayerEntity.cs (revision 0)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSoilLayerEntity.cs (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -0,0 +1,52 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.
+//
+// This program 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.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+//------------------------------------------------------------------------------
+//
+// This code was generated from a template.
+//
+// Manual changes to this file may cause unexpected behavior in your application.
+// Manual changes to this file will be overwritten if the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Application.Ringtoets.Storage.DbContext
+{
+ public class PipingSoilLayerEntity
+ {
+ public long PipingSoilLayerEntityId { get; set; }
+ public long PipingSoilProfileEntityId { get; set; }
+ public double? Top { get; set; }
+ public byte IsAquifer { get; set; }
+ public long Color { get; set; }
+ public string MaterialName { get; set; }
+ public double? BelowPhreaticLevelMean { get; set; }
+ public double? BelowPhreaticLevelDeviation { get; set; }
+ public double? DiameterD70Mean { get; set; }
+ public double? DiameterD70CoefficientOfVariation { get; set; }
+ public double? BelowPhreaticLevelShift { get; set; }
+ public double? PermeabilityMean { get; set; }
+ public double? PermeabilityCoefficientOfVariation { get; set; }
+ public int Order { get; set; }
+
+ public virtual PipingSoilProfileEntity PipingSoilProfileEntity { get; set; }
+ }
+}
\ No newline at end of file
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSoilProfileEntity.cs
===================================================================
diff -u
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSoilProfileEntity.cs (revision 0)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSoilProfileEntity.cs (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -0,0 +1,56 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.
+//
+// This program 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.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+//------------------------------------------------------------------------------
+//
+// This code was generated from a template.
+//
+// Manual changes to this file may cause unexpected behavior in your application.
+// Manual changes to this file will be overwritten if the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
+
+namespace Application.Ringtoets.Storage.DbContext
+{
+ public class PipingSoilProfileEntity
+ {
+ [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+ public PipingSoilProfileEntity()
+ {
+ PipingSoilLayerEntities = new HashSet();
+ PipingStochasticSoilProfileEntities = new HashSet();
+ }
+
+ public long PipingSoilProfileEntityId { get; set; }
+ public double? Bottom { get; set; }
+ public string Name { get; set; }
+ public byte SourceType { get; set; }
+
+ [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection PipingSoilLayerEntities { get; set; }
+
+ [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection PipingStochasticSoilProfileEntities { get; set; }
+ }
+}
\ No newline at end of file
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingStochasticSoilProfileEntity.cs
===================================================================
diff -u
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingStochasticSoilProfileEntity.cs (revision 0)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingStochasticSoilProfileEntity.cs (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -0,0 +1,56 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.
+//
+// This program 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.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+//------------------------------------------------------------------------------
+//
+// This code was generated from a template.
+//
+// Manual changes to this file may cause unexpected behavior in your application.
+// Manual changes to this file will be overwritten if the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
+
+namespace Application.Ringtoets.Storage.DbContext
+{
+ public class PipingStochasticSoilProfileEntity
+ {
+ [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+ public PipingStochasticSoilProfileEntity()
+ {
+ PipingCalculationEntities = new HashSet();
+ }
+
+ public long PipingStochasticSoilProfileEntityId { get; set; }
+ public long PipingSoilProfileEntityId { get; set; }
+ public long StochasticSoilModelEntityId { get; set; }
+ public double Probability { get; set; }
+ public int Order { get; set; }
+
+ [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection PipingCalculationEntities { get; set; }
+
+ public virtual PipingSoilProfileEntity PipingSoilProfileEntity { get; set; }
+ public virtual StochasticSoilModelEntity StochasticSoilModelEntity { get; set; }
+ }
+}
\ No newline at end of file
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.cs
===================================================================
diff -u -re6a591b93ec33becef19b4d71f3d49de0fbd7f10 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.cs (.../RingtoetsEntities.Context.cs) (revision e6a591b93ec33becef19b4d71f3d49de0fbd7f10)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.cs (.../RingtoetsEntities.Context.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -39,7 +39,6 @@
public virtual DbSet BackgroundDataEntities { get; set; }
public virtual DbSet BackgroundDataMetaEntities { get; set; }
public virtual DbSet CalculationGroupEntities { get; set; }
- public virtual DbSet CharacteristicPointEntities { get; set; }
public virtual DbSet ClosingStructureEntities { get; set; }
public virtual DbSet ClosingStructuresCalculationEntities { get; set; }
public virtual DbSet ClosingStructuresFailureMechanismMetaEntities { get; set; }
@@ -83,13 +82,15 @@
public virtual DbSet MicrostabilitySectionResultEntities { get; set; }
public virtual DbSet PipingCalculationEntities { get; set; }
public virtual DbSet PipingCalculationOutputEntities { get; set; }
+ public virtual DbSet PipingCharacteristicPointEntities { get; set; }
public virtual DbSet PipingFailureMechanismMetaEntities { get; set; }
public virtual DbSet PipingSectionResultEntities { get; set; }
public virtual DbSet PipingSemiProbabilisticOutputEntities { get; set; }
+ public virtual DbSet PipingSoilLayerEntities { get; set; }
+ public virtual DbSet PipingSoilProfileEntities { get; set; }
+ public virtual DbSet PipingStochasticSoilProfileEntities { get; set; }
public virtual DbSet PipingStructureSectionResultEntities { get; set; }
public virtual DbSet ProjectEntities { get; set; }
- public virtual DbSet SoilLayerEntities { get; set; }
- public virtual DbSet SoilProfileEntities { get; set; }
public virtual DbSet StabilityPointStructureEntities { get; set; }
public virtual DbSet StabilityPointStructuresCalculationEntities { get; set; }
public virtual DbSet StabilityPointStructuresFailureMechanismMetaEntities { get; set; }
@@ -101,7 +102,6 @@
public virtual DbSet StabilityStoneCoverWaveConditionsOutputEntities { get; set; }
public virtual DbSet StochastEntities { get; set; }
public virtual DbSet StochasticSoilModelEntities { get; set; }
- public virtual DbSet StochasticSoilProfileEntities { get; set; }
public virtual DbSet StrengthStabilityLengthwiseConstructionSectionResultEntities { get; set; }
public virtual DbSet SubMechanismIllustrationPointEntities { get; set; }
public virtual DbSet SubMechanismIllustrationPointStochastEntities { get; set; }
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx
===================================================================
diff -u -rfa42997d06603fbf18a0f44a08f801230e9180cc -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx (.../RingtoetsEntities.edmx) (revision fa42997d06603fbf18a0f44a08f801230e9180cc)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx (.../RingtoetsEntities.edmx) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -4,7 +4,7 @@
-
+
@@ -52,17 +52,6 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -748,6 +737,17 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -790,29 +790,12 @@
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -826,15 +809,42 @@
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1072,16 +1082,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -1281,18 +1281,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
@@ -2122,11 +2110,11 @@
-
+
-
-
+
+
@@ -2169,6 +2157,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2205,6 +2205,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2217,18 +2253,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
@@ -2433,30 +2457,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -2642,7 +2642,6 @@
-
@@ -2690,13 +2689,15 @@
+
+
+
+
-
-
@@ -2708,7 +2709,6 @@
-
@@ -2738,10 +2738,6 @@
-
-
-
-
@@ -3019,7 +3015,7 @@
-
+
@@ -3034,6 +3030,10 @@
+
+
+
+
@@ -3046,14 +3046,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
@@ -3122,14 +3130,6 @@
-
-
-
-
-
-
-
-
@@ -3200,7 +3200,6 @@
-
@@ -3244,13 +3243,15 @@
+
+
+
+
-
-
@@ -3262,7 +3263,6 @@
-
@@ -3336,10 +3336,6 @@
-
-
-
-
@@ -3661,7 +3657,7 @@
-
+
@@ -3672,14 +3668,22 @@
-
-
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -3696,10 +3700,6 @@
-
-
-
-
@@ -3794,18 +3794,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
@@ -4584,7 +4572,7 @@
-
+
@@ -4608,6 +4596,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4653,31 +4653,12 @@
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -4690,19 +4671,51 @@
-
+
-
+
-
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -4963,21 +4976,8 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -5025,9 +5025,9 @@
-
+
@@ -5331,18 +5331,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
@@ -6304,11 +6292,11 @@
-
+
-
-
+
+
@@ -6339,30 +6327,54 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -6411,18 +6423,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
@@ -6532,18 +6532,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
@@ -7240,6 +7228,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -7285,28 +7285,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -7319,21 +7300,51 @@
-
-
+
+
-
-
-
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -7582,17 +7593,6 @@
-
-
-
-
-
-
-
-
-
-
-
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx.diagram
===================================================================
diff -u -rfa42997d06603fbf18a0f44a08f801230e9180cc -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx.diagram (.../RingtoetsEntities.edmx.diagram) (revision fa42997d06603fbf18a0f44a08f801230e9180cc)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.edmx.diagram (.../RingtoetsEntities.edmx.diagram) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -9,82 +9,82 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
@@ -100,7 +100,6 @@
-
@@ -184,13 +183,14 @@
-
-
+
+
+
+
-
Fisheye: Tag a096cb901099c85dbaafa2dba6c69288464c248e refers to a dead (removed) revision in file `Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SoilLayerEntity.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag a096cb901099c85dbaafa2dba6c69288464c248e refers to a dead (removed) revision in file `Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SoilProfileEntity.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilModelEntity.cs
===================================================================
diff -u -r8a0dd3cd494c23f4801327565ddf5d774949e077 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilModelEntity.cs (.../StochasticSoilModelEntity.cs) (revision 8a0dd3cd494c23f4801327565ddf5d774949e077)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilModelEntity.cs (.../StochasticSoilModelEntity.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -38,7 +38,7 @@
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public StochasticSoilModelEntity()
{
- StochasticSoilProfileEntities = new HashSet();
+ PipingStochasticSoilProfileEntities = new HashSet();
}
public long StochasticSoilModelEntityId { get; set; }
@@ -50,6 +50,6 @@
public virtual FailureMechanismEntity FailureMechanismEntity { get; set; }
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection StochasticSoilProfileEntities { get; set; }
+ public virtual ICollection PipingStochasticSoilProfileEntities { get; set; }
}
}
\ No newline at end of file
Fisheye: Tag a096cb901099c85dbaafa2dba6c69288464c248e refers to a dead (removed) revision in file `Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilProfileEntity.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SurfaceLineEntity.cs
===================================================================
diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SurfaceLineEntity.cs (.../SurfaceLineEntity.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SurfaceLineEntity.cs (.../SurfaceLineEntity.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -38,8 +38,8 @@
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public SurfaceLineEntity()
{
- CharacteristicPointEntities = new HashSet();
PipingCalculationEntities = new HashSet();
+ PipingCharacteristicPointEntities = new HashSet();
}
public long SurfaceLineEntityId { get; set; }
@@ -50,12 +50,12 @@
public string PointsXml { get; set; }
public int Order { get; set; }
- [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public virtual ICollection CharacteristicPointEntities { get; set; }
-
public virtual FailureMechanismEntity FailureMechanismEntity { get; set; }
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection PipingCalculationEntities { get; set; }
+
+ [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+ public virtual ICollection PipingCharacteristicPointEntities { get; set; }
}
}
\ No newline at end of file
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingCalculationEntityReadExtensions.cs
===================================================================
diff -u -r26f527fb809a2325c8f883ece9da01a8f8040eb3 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingCalculationEntityReadExtensions.cs (.../PipingCalculationEntityReadExtensions.cs) (revision 26f527fb809a2325c8f883ece9da01a8f8040eb3)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingCalculationEntityReadExtensions.cs (.../PipingCalculationEntityReadExtensions.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -103,10 +103,10 @@
}
}
- if (entity.StochasticSoilProfileEntity != null)
+ if (entity.PipingStochasticSoilProfileEntity != null)
{
- inputParameters.StochasticSoilModel = entity.StochasticSoilProfileEntity.StochasticSoilModelEntity.Read(collector);
- inputParameters.StochasticSoilProfile = entity.StochasticSoilProfileEntity.Read(collector);
+ inputParameters.StochasticSoilModel = entity.PipingStochasticSoilProfileEntity.StochasticSoilModelEntity.Read(collector);
+ inputParameters.StochasticSoilProfile = entity.PipingStochasticSoilProfileEntity.Read(collector);
}
inputParameters.EntryPointL = (RoundedDouble) entity.EntryPointL.ToNullAsNaN();
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingSoilLayerEntityReadExtensions.cs
===================================================================
diff -u
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingSoilLayerEntityReadExtensions.cs (revision 0)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingSoilLayerEntityReadExtensions.cs (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -0,0 +1,58 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.
+//
+// This program 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.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.Drawing;
+using Application.Ringtoets.Storage.DbContext;
+using Ringtoets.Piping.Primitives;
+
+namespace Application.Ringtoets.Storage.Read.Piping
+{
+ ///
+ /// This class defines extension methods for read operations for a based on the
+ /// .
+ ///
+ internal static class PipingSoilLayerEntityReadExtensions
+ {
+ ///
+ /// Reads the and use the information to construct a .
+ ///
+ /// The to create for.
+ /// A new .
+ internal static PipingSoilLayer Read(this PipingSoilLayerEntity entity)
+ {
+ var pipingSoilLayer = new PipingSoilLayer(entity.Top.ToNullAsNaN())
+ {
+ IsAquifer = Convert.ToBoolean(entity.IsAquifer),
+ Color = Color.FromArgb(Convert.ToInt32(entity.Color)),
+ MaterialName = entity.MaterialName ?? string.Empty,
+ BelowPhreaticLevelMean = entity.BelowPhreaticLevelMean.ToNullAsNaN(),
+ BelowPhreaticLevelDeviation = entity.BelowPhreaticLevelDeviation.ToNullAsNaN(),
+ BelowPhreaticLevelShift = entity.BelowPhreaticLevelShift.ToNullAsNaN(),
+ DiameterD70Mean = entity.DiameterD70Mean.ToNullAsNaN(),
+ DiameterD70CoefficientOfVariation = entity.DiameterD70CoefficientOfVariation.ToNullAsNaN(),
+ PermeabilityMean = entity.PermeabilityMean.ToNullAsNaN(),
+ PermeabilityCoefficientOfVariation = entity.PermeabilityCoefficientOfVariation.ToNullAsNaN()
+ };
+ return pipingSoilLayer;
+ }
+ }
+}
\ No newline at end of file
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingSoilProfileEntityReadExtensions.cs
===================================================================
diff -u
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingSoilProfileEntityReadExtensions.cs (revision 0)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingSoilProfileEntityReadExtensions.cs (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -0,0 +1,67 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.
+//
+// This program 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.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Application.Ringtoets.Storage.DbContext;
+using Ringtoets.Piping.Primitives;
+
+namespace Application.Ringtoets.Storage.Read.Piping
+{
+ ///
+ /// This class defines extension methods for read operations for a based on the
+ /// .
+ ///
+ internal static class PipingSoilProfileEntityReadExtensions
+ {
+ ///
+ /// Reads the and use the information to construct a .
+ ///
+ /// The to create for.
+ /// The object keeping track of read operations.
+ /// A new or one from the if the
+ /// has been read before.
+ /// Thrown when is null.
+ internal static PipingSoilProfile Read(this PipingSoilProfileEntity entity, ReadConversionCollector collector)
+ {
+ if (collector == null)
+ {
+ throw new ArgumentNullException(nameof(collector));
+ }
+
+ if (collector.Contains(entity))
+ {
+ return collector.Get(entity);
+ }
+ IEnumerable layers = entity.PipingSoilLayerEntities.OrderBy(sl => sl.Order)
+ .Select(sl => sl.Read())
+ .ToArray();
+ var pipingSoilProfile = new PipingSoilProfile(entity.Name,
+ entity.Bottom.ToNullAsNaN(),
+ layers,
+ (SoilProfileType) entity.SourceType);
+
+ collector.Read(entity, pipingSoilProfile);
+ return pipingSoilProfile;
+ }
+ }
+}
\ No newline at end of file
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingStochasticSoilProfileEntityReadExtensions.cs
===================================================================
diff -u
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingStochasticSoilProfileEntityReadExtensions.cs (revision 0)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingStochasticSoilProfileEntityReadExtensions.cs (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -0,0 +1,70 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.
+//
+// This program 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.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Application.Ringtoets.Storage.DbContext;
+using Ringtoets.Piping.Data.SoilProfile;
+using Ringtoets.Piping.Primitives;
+
+namespace Application.Ringtoets.Storage.Read.Piping
+{
+ ///
+ /// This class defines extension methods for read operations for a
+ /// based on the .
+ ///
+ internal static class PipingStochasticSoilProfileEntityReadExtensions
+ {
+ ///
+ /// Reads the and use the information to
+ /// construct a .
+ ///
+ /// The to create
+ /// for.
+ /// The object keeping track of read operations.
+ /// A new .
+ /// Thrown when is null.
+ internal static PipingStochasticSoilProfile Read(this PipingStochasticSoilProfileEntity entity,
+ ReadConversionCollector collector)
+ {
+ if (collector == null)
+ {
+ throw new ArgumentNullException(nameof(collector));
+ }
+ if (collector.Contains(entity))
+ {
+ return collector.Get(entity);
+ }
+
+ PipingSoilProfile soilProfile = entity.ReadSoilProfile(collector);
+ var stochasticSoilProfile = new PipingStochasticSoilProfile(entity.Probability, soilProfile);
+
+ collector.Read(entity, stochasticSoilProfile);
+
+ return stochasticSoilProfile;
+ }
+
+ private static PipingSoilProfile ReadSoilProfile(this PipingStochasticSoilProfileEntity entity,
+ ReadConversionCollector collector)
+ {
+ return entity.PipingSoilProfileEntity.Read(collector);
+ }
+ }
+}
\ No newline at end of file
Fisheye: Tag a096cb901099c85dbaafa2dba6c69288464c248e refers to a dead (removed) revision in file `Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/SoilLayerEntityReadExtensions.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag a096cb901099c85dbaafa2dba6c69288464c248e refers to a dead (removed) revision in file `Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/SoilProfileEntityReadExtensions.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/StochasticSoilModelEntityReadExtensions.cs
===================================================================
diff -u -r26f527fb809a2325c8f883ece9da01a8f8040eb3 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/StochasticSoilModelEntityReadExtensions.cs (.../StochasticSoilModelEntityReadExtensions.cs) (revision 26f527fb809a2325c8f883ece9da01a8f8040eb3)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/StochasticSoilModelEntityReadExtensions.cs (.../StochasticSoilModelEntityReadExtensions.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -68,7 +68,8 @@
PipingStochasticSoilModel model,
ReadConversionCollector collector)
{
- foreach (StochasticSoilProfileEntity stochasticSoilProfileEntity in entity.StochasticSoilProfileEntities.OrderBy(ssp => ssp.Order))
+ foreach (PipingStochasticSoilProfileEntity stochasticSoilProfileEntity in entity.PipingStochasticSoilProfileEntities
+ .OrderBy(ssp => ssp.Order))
{
model.StochasticSoilProfiles.Add(stochasticSoilProfileEntity.Read(collector));
}
Fisheye: Tag a096cb901099c85dbaafa2dba6c69288464c248e refers to a dead (removed) revision in file `Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/StochasticSoilProfileEntityReadExtensions.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/SurfaceLineEntityReadExtensions.cs
===================================================================
diff -u -r99f686f22091051a65ff1ee20abd68ffad713647 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/SurfaceLineEntityReadExtensions.cs (.../SurfaceLineEntityReadExtensions.cs) (revision 99f686f22091051a65ff1ee20abd68ffad713647)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/SurfaceLineEntityReadExtensions.cs (.../SurfaceLineEntityReadExtensions.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -76,7 +76,7 @@
surfaceLine.SetGeometry(geometryPoints);
var characteristicPoints = new Dictionary();
- foreach (CharacteristicPointEntity pointEntity in entity.CharacteristicPointEntities)
+ foreach (PipingCharacteristicPointEntity pointEntity in entity.PipingCharacteristicPointEntities)
{
characteristicPoints[(CharacteristicPointType) pointEntity.Type] = new Point3D(pointEntity.X.ToNullAsNaN(),
pointEntity.Y.ToNullAsNaN(),
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/ReadConversionCollector.cs
===================================================================
diff -u -r26f527fb809a2325c8f883ece9da01a8f8040eb3 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/ReadConversionCollector.cs (.../ReadConversionCollector.cs) (revision 26f527fb809a2325c8f883ece9da01a8f8040eb3)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/ReadConversionCollector.cs (.../ReadConversionCollector.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -46,11 +46,11 @@
private readonly Dictionary pipingStochasticSoilModels =
CreateDictionary();
- private readonly Dictionary pipingStochasticSoilProfiles =
- CreateDictionary();
+ private readonly Dictionary pipingStochasticSoilProfiles =
+ CreateDictionary();
- private readonly Dictionary pipingSoilProfiles =
- CreateDictionary();
+ private readonly Dictionary pipingSoilProfiles =
+ CreateDictionary();
private readonly Dictionary surfaceLines =
CreateDictionary();
@@ -107,11 +107,7 @@
///
/// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(StochasticSoilModelEntity entity, PipingStochasticSoilModel model)
{
if (entity == null)
@@ -170,20 +166,16 @@
#endregion
- #region StochasticSoilProfileEntity: Read, Contains, Get
+ #region PipingStochasticSoilProfileEntity: Read, Contains, Get
///
- /// Registers a read operation for and
+ /// Registers a read operation for and
/// the that was constructed with the information.
///
- /// The that was read.
+ /// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
- internal void Read(StochasticSoilProfileEntity entity, PipingStochasticSoilProfile model)
+ /// Thrown when any of the input parameters is null.
+ internal void Read(PipingStochasticSoilProfileEntity entity, PipingStochasticSoilProfile model)
{
if (entity == null)
{
@@ -198,12 +190,12 @@
}
///
- /// Checks whether a read operations has been registered for the given .
+ /// Checks whether a read operations has been registered for the given .
///
- /// The to check for.
+ /// The to check for.
/// true if the was read before, false otherwise.
/// Thrown when is null.
- internal bool Contains(StochasticSoilProfileEntity entity)
+ internal bool Contains(PipingStochasticSoilProfileEntity entity)
{
if (entity == null)
{
@@ -214,17 +206,17 @@
///
/// Obtains the which was read for the given
- /// .
+ /// .
///
- /// The for which
+ /// The for which
/// a read operation has been registered.
/// The constructed .
/// Thrown when is null.
- /// Thrown when no read operation has been registered for
- /// .
- /// Use to find out whether a read operation has been registered for
- /// .
- internal PipingStochasticSoilProfile Get(StochasticSoilProfileEntity entity)
+ /// Thrown when no read operation has been
+ /// registered for .
+ /// Use to find out
+ /// whether a read operation has been registered for .
+ internal PipingStochasticSoilProfile Get(PipingStochasticSoilProfileEntity entity)
{
if (entity == null)
{
@@ -242,20 +234,16 @@
#endregion
- #region SoilProfileEntity: Read, Contains, Get
+ #region PipingSoilProfileEntity: Read, Contains, Get
///
- /// Registers a read operation for and the that
- /// was constructed with the information.
+ /// Registers a read operation for and the
+ /// that was constructed with the information.
///
- /// The that was read.
+ /// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
- internal void Read(SoilProfileEntity entity, PipingSoilProfile model)
+ /// Thrown when any of the input parameters is null.
+ internal void Read(PipingSoilProfileEntity entity, PipingSoilProfile model)
{
if (entity == null)
{
@@ -272,10 +260,10 @@
///
/// Checks whether a read operations has been registered for the given .
///
- /// The to check for.
+ /// The to check for.
/// true if the was read before, false otherwise.
/// Thrown when is null.
- internal bool Contains(SoilProfileEntity entity)
+ internal bool Contains(PipingSoilProfileEntity entity)
{
if (entity == null)
{
@@ -287,14 +275,15 @@
///
/// Obtains the which was read for the given .
///
- /// The for which a read operation has been registered.
+ /// The for which a read operation
+ /// has been registered.
/// The constructed .
/// Thrown when is null.
- /// Thrown when no read operation has been registered for
- /// .
- /// Use to find out whether a read operation has been registered for
- /// .
- internal PipingSoilProfile Get(SoilProfileEntity entity)
+ /// Thrown when no read operation has been
+ /// registered for .
+ /// Use to find out whether a
+ /// read operation has been registered for .
+ internal PipingSoilProfile Get(PipingSoilProfileEntity entity)
{
if (entity == null)
{
@@ -320,11 +309,7 @@
///
/// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(SurfaceLineEntity entity, PipingSurfaceLine model)
{
if (entity == null)
@@ -392,11 +377,7 @@
///
/// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(HydraulicLocationEntity entity, HydraulicBoundaryLocation model)
{
if (entity == null)
@@ -464,11 +445,7 @@
///
/// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(DuneLocationEntity entity, DuneLocation model)
{
if (entity == null)
@@ -536,11 +513,7 @@
///
/// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(FailureMechanismSectionEntity entity, FailureMechanismSection model)
{
if (entity == null)
@@ -608,11 +581,7 @@
///
/// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(DikeProfileEntity entity, DikeProfile model)
{
if (entity == null)
@@ -680,11 +649,7 @@
///
/// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(ForeshoreProfileEntity entity, ForeshoreProfile model)
{
if (entity == null)
@@ -755,11 +720,7 @@
/// that was read.
/// The that
/// was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(GrassCoverErosionInwardsCalculationEntity entity, GrassCoverErosionInwardsCalculation model)
{
if (entity == null)
@@ -827,11 +788,7 @@
///
/// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(GrassCoverErosionOutwardsHydraulicLocationEntity entity, HydraulicBoundaryLocation model)
{
if (entity == null)
@@ -899,11 +856,7 @@
///
/// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(HeightStructureEntity entity, HeightStructure model)
{
if (entity == null)
@@ -1042,11 +995,7 @@
///
/// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(ClosingStructureEntity entity, ClosingStructure model)
{
if (entity == null)
@@ -1185,11 +1134,7 @@
///
/// The that was read.
/// The that was constructed.
- /// Thrown when either:
- ///
- /// - is null
- /// - is null
- ///
+ /// Thrown when any of the input parameters is null.
internal void Read(StabilityPointStructureEntity entity, StabilityPointStructure model)
{
if (entity == null)
Index: Application/Ringtoets/test/Application.Ringtoets.Migration.Core.Test/test-data/Empty valid Release 17.1.rtd
===================================================================
diff -u -rc48c65234bef938fd1c4700e5723e30bc50a7b31 -ra096cb901099c85dbaafa2dba6c69288464c248e
Binary files differ
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj
===================================================================
diff -u -r7b7bd75dc1c1327386c9be96b5d480565bb8ecd6 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj (.../Application.Ringtoets.Storage.Test.csproj) (revision 7b7bd75dc1c1327386c9be96b5d480565bb8ecd6)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj (.../Application.Ringtoets.Storage.Test.csproj) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -229,10 +229,10 @@
-
-
+
+
-
+
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/BackgroundDataCreateExtensionsTest.cs
===================================================================
diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/BackgroundDataCreateExtensionsTest.cs (.../BackgroundDataCreateExtensionsTest.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/BackgroundDataCreateExtensionsTest.cs (.../BackgroundDataCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -37,11 +37,8 @@
[Test]
public void Create_BackgroundDataNull_ThrowArgumentNullException()
{
- // Setup
- BackgroundData backgroundData = null;
-
// Call
- TestDelegate test = () => backgroundData.Create();
+ TestDelegate test = () => ((BackgroundData) null).Create();
// Assert
var exception = Assert.Throws(test);
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/DuneLocationOutputCreateExtensionsTest.cs
===================================================================
diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/DuneLocationOutputCreateExtensionsTest.cs (.../DuneLocationOutputCreateExtensionsTest.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/DuneLocationOutputCreateExtensionsTest.cs (.../DuneLocationOutputCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -37,11 +37,8 @@
[Test]
public void Create_DuneLocationOutputNull_ThrowsArgumentNullException()
{
- // Setup
- DuneLocationOutput duneLocationOutput = null;
-
// Call
- TestDelegate call = () => duneLocationOutput.Create();
+ TestDelegate call = () => ((DuneLocationOutput) null).Create();
// Assert
string paramName = Assert.Throws(call).ParamName;
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/GeneralDuneErosionInputCreateExtensionsTest.cs
===================================================================
diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/GeneralDuneErosionInputCreateExtensionsTest.cs (.../GeneralDuneErosionInputCreateExtensionsTest.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/DuneErosion/GeneralDuneErosionInputCreateExtensionsTest.cs (.../GeneralDuneErosionInputCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -36,11 +36,8 @@
[Test]
public void Create_NullInput_ThrowsArgumentNullException()
{
- // Setup
- GeneralDuneErosionInput generalinput = null;
-
// Call
- TestDelegate call = () => generalinput.Create();
+ TestDelegate call = () => ((GeneralDuneErosionInput) null).Create();
// Assert
string paramName = Assert.Throws(call).ParamName;
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/DikeHeightOutputCreateExtensionsTest.cs
===================================================================
diff -u -r82c8dcdc0f254596b25e1e201a07c29500e9cab9 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/DikeHeightOutputCreateExtensionsTest.cs (.../DikeHeightOutputCreateExtensionsTest.cs) (revision 82c8dcdc0f254596b25e1e201a07c29500e9cab9)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/DikeHeightOutputCreateExtensionsTest.cs (.../DikeHeightOutputCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -38,11 +38,8 @@
[Test]
public void Create_OutputNull_ThrowArgumentNullException()
{
- // Setup
- DikeHeightOutput output = null;
-
// Call
- TestDelegate test = () => output.Create();
+ TestDelegate test = () => ((DikeHeightOutput) null).Create();
// Assert
var exception = Assert.Throws(test);
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/GrassCoverErosionInwardsCalculationCreateExtensionsTest.cs
===================================================================
diff -u -r82c8dcdc0f254596b25e1e201a07c29500e9cab9 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/GrassCoverErosionInwardsCalculationCreateExtensionsTest.cs (.../GrassCoverErosionInwardsCalculationCreateExtensionsTest.cs) (revision 82c8dcdc0f254596b25e1e201a07c29500e9cab9)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/GrassCoverErosionInwardsCalculationCreateExtensionsTest.cs (.../GrassCoverErosionInwardsCalculationCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -24,7 +24,6 @@
using Application.Ringtoets.Storage.Create;
using Application.Ringtoets.Storage.Create.GrassCoverErosionInwards;
using Application.Ringtoets.Storage.DbContext;
-using Application.Ringtoets.Storage.TestUtil.IllustrationPoints;
using Core.Common.Base.Data;
using Core.Common.TestUtil;
using NUnit.Framework;
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/OvertoppingRateOutputCreateExtensionsTest.cs
===================================================================
diff -u -r82c8dcdc0f254596b25e1e201a07c29500e9cab9 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/OvertoppingRateOutputCreateExtensionsTest.cs (.../OvertoppingRateOutputCreateExtensionsTest.cs) (revision 82c8dcdc0f254596b25e1e201a07c29500e9cab9)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/OvertoppingRateOutputCreateExtensionsTest.cs (.../OvertoppingRateOutputCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -38,11 +38,8 @@
[Test]
public void Create_OutputNull_ThrowArgumentNullException()
{
- // Setup
- OvertoppingRateOutput output = null;
-
// Call
- TestDelegate test = () => output.Create();
+ TestDelegate test = () => ((OvertoppingRateOutput) null).Create();
// Assert
var exception = Assert.Throws(test);
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/PersistenceRegistryTest.cs
===================================================================
diff -u -r99f686f22091051a65ff1ee20abd68ffad713647 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/PersistenceRegistryTest.cs (.../PersistenceRegistryTest.cs) (revision 99f686f22091051a65ff1ee20abd68ffad713647)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/PersistenceRegistryTest.cs (.../PersistenceRegistryTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -84,12 +84,12 @@
}
[Test]
- public void Contains_SoilProfileAdded_ReturnsTrue()
+ public void Contains_PipingSoilProfileAdded_ReturnsTrue()
{
// Setup
var registry = new PersistenceRegistry();
PipingSoilProfile profile = PipingSoilProfileTestFactory.CreatePipingSoilProfile();
- registry.Register(new SoilProfileEntity(), profile);
+ registry.Register(new PipingSoilProfileEntity(), profile);
// Call
bool result = registry.Contains(profile);
@@ -99,7 +99,7 @@
}
[Test]
- public void Contains_NoSoilProfileAdded_ReturnsFalse()
+ public void Contains_NoPipingSoilProfileAdded_ReturnsFalse()
{
// Setup
var registry = new PersistenceRegistry();
@@ -113,12 +113,12 @@
}
[Test]
- public void Contains_OtherSoilProfileAdded_ReturnsFalse()
+ public void Contains_OtherPipingSoilProfileAdded_ReturnsFalse()
{
// Setup
var registry = new PersistenceRegistry();
PipingSoilProfile profile = PipingSoilProfileTestFactory.CreatePipingSoilProfile();
- registry.Register(new SoilProfileEntity(), PipingSoilProfileTestFactory.CreatePipingSoilProfile());
+ registry.Register(new PipingSoilProfileEntity(), PipingSoilProfileTestFactory.CreatePipingSoilProfile());
// Call
bool result = registry.Contains(profile);
@@ -374,12 +374,12 @@
}
[Test]
- public void Contains_StochasticSoilProfileAdded_ReturnsTrue()
+ public void Contains_PipingStochasticSoilProfileAdded_ReturnsTrue()
{
// Setup
var registry = new PersistenceRegistry();
var stochasticSoilProfile = new PipingStochasticSoilProfile(0.4, PipingSoilProfileTestFactory.CreatePipingSoilProfile());
- registry.Register(new StochasticSoilProfileEntity(), stochasticSoilProfile);
+ registry.Register(new PipingStochasticSoilProfileEntity(), stochasticSoilProfile);
// Call
bool result = registry.Contains(stochasticSoilProfile);
@@ -408,7 +408,7 @@
// Setup
var registry = new PersistenceRegistry();
var stochasticSoilProfile = new PipingStochasticSoilProfile(0.4, PipingSoilProfileTestFactory.CreatePipingSoilProfile());
- registry.Register(new StochasticSoilProfileEntity(), new PipingStochasticSoilProfile(0.7, PipingSoilProfileTestFactory.CreatePipingSoilProfile()));
+ registry.Register(new PipingStochasticSoilProfileEntity(), new PipingStochasticSoilProfile(0.7, PipingSoilProfileTestFactory.CreatePipingSoilProfile()));
// Call
bool result = registry.Contains(stochasticSoilProfile);
@@ -1027,23 +1027,23 @@
}
[Test]
- public void Get_SoilProfileAdded_ReturnsEntity()
+ public void Get_PipingSoilProfileAdded_ReturnsEntity()
{
// Setup
var registry = new PersistenceRegistry();
PipingSoilProfile profile = PipingSoilProfileTestFactory.CreatePipingSoilProfile();
- var entity = new SoilProfileEntity();
+ var entity = new PipingSoilProfileEntity();
registry.Register(entity, profile);
// Call
- SoilProfileEntity result = registry.Get(profile);
+ PipingSoilProfileEntity result = registry.Get(profile);
// Assert
Assert.AreSame(entity, result);
}
[Test]
- public void Get_NoSoilProfileAdded_ThrowsInvalidOperationException()
+ public void Get_NoPipingSoilProfileAdded_ThrowsInvalidOperationException()
{
// Setup
var registry = new PersistenceRegistry();
@@ -1057,12 +1057,12 @@
}
[Test]
- public void Get_OtherSoilProfileAdded_ThrowsInvalidOperationException()
+ public void Get_OtherPipingSoilProfileAdded_ThrowsInvalidOperationException()
{
// Setup
var registry = new PersistenceRegistry();
PipingSoilProfile profile = PipingSoilProfileTestFactory.CreatePipingSoilProfile();
- registry.Register(new SoilProfileEntity(), PipingSoilProfileTestFactory.CreatePipingSoilProfile());
+ registry.Register(new PipingSoilProfileEntity(), PipingSoilProfileTestFactory.CreatePipingSoilProfile());
// Call
TestDelegate test = () => registry.Get(profile);
@@ -1327,11 +1327,11 @@
// Setup
var registry = new PersistenceRegistry();
var stochasticSoilProfile = new PipingStochasticSoilProfile(0.2, PipingSoilProfileTestFactory.CreatePipingSoilProfile());
- var entity = new StochasticSoilProfileEntity();
+ var entity = new PipingStochasticSoilProfileEntity();
registry.Register(entity, stochasticSoilProfile);
// Call
- StochasticSoilProfileEntity result = registry.Get(stochasticSoilProfile);
+ PipingStochasticSoilProfileEntity result = registry.Get(stochasticSoilProfile);
// Assert
Assert.AreSame(entity, result);
@@ -1357,7 +1357,7 @@
// Setup
var registry = new PersistenceRegistry();
var stochasticSoilProfile = new PipingStochasticSoilProfile(0.2, PipingSoilProfileTestFactory.CreatePipingSoilProfile());
- registry.Register(new StochasticSoilProfileEntity(), new PipingStochasticSoilProfile(0.4, PipingSoilProfileTestFactory.CreatePipingSoilProfile()));
+ registry.Register(new PipingStochasticSoilProfileEntity(), new PipingStochasticSoilProfile(0.4, PipingSoilProfileTestFactory.CreatePipingSoilProfile()));
// Call
TestDelegate test = () => registry.Get(stochasticSoilProfile);
@@ -2150,15 +2150,15 @@
var registry = new PersistenceRegistry();
// Call
- TestDelegate test = () => registry.Register(new StochasticSoilProfileEntity(), null);
+ TestDelegate test = () => registry.Register(new PipingStochasticSoilProfileEntity(), null);
// Assert
string paramName = Assert.Throws(test).ParamName;
Assert.AreEqual("model", paramName);
}
[Test]
- public void Register_WithNullSoilProfileEntity_ThrowsArgumentNullException()
+ public void Register_WithNullPipingSoilProfileEntity_ThrowsArgumentNullException()
{
// Setup
var registry = new PersistenceRegistry();
@@ -2181,7 +2181,7 @@
var registry = new PersistenceRegistry();
// Call
- TestDelegate test = () => registry.Register(new SoilProfileEntity(), null);
+ TestDelegate test = () => registry.Register(new PipingSoilProfileEntity(), null);
// Assert
string paramName = Assert.Throws(test).ParamName;
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingCalculationScenarioCreateExtensionsTest.cs
===================================================================
diff -u -r99f686f22091051a65ff1ee20abd68ffad713647 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingCalculationScenarioCreateExtensionsTest.cs (.../PipingCalculationScenarioCreateExtensionsTest.cs) (revision 99f686f22091051a65ff1ee20abd68ffad713647)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingCalculationScenarioCreateExtensionsTest.cs (.../PipingCalculationScenarioCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -146,7 +146,7 @@
Assert.IsNull(entity.CalculationGroupEntity);
Assert.IsNull(entity.SurfaceLineEntity);
- Assert.IsNull(entity.StochasticSoilProfileEntity);
+ Assert.IsNull(entity.PipingStochasticSoilProfileEntity);
Assert.IsNull(entity.HydraulicLocationEntityId);
}
@@ -262,8 +262,8 @@
PipingCalculationEntity entity = calculation.Create(registry, 0);
// Assert
- StochasticSoilProfileEntity expectedStochasticSoilProfileEntity = soilModelEntity.StochasticSoilProfileEntities.First();
- Assert.AreSame(expectedStochasticSoilProfileEntity, entity.StochasticSoilProfileEntity);
+ PipingStochasticSoilProfileEntity expectedStochasticSoilProfileEntity = soilModelEntity.PipingStochasticSoilProfileEntities.First();
+ Assert.AreSame(expectedStochasticSoilProfileEntity, entity.PipingStochasticSoilProfileEntity);
Assert.IsTrue(registry.Contains(soilModel));
}
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingSoilLayerCreateExtensionsTest.cs
===================================================================
diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingSoilLayerCreateExtensionsTest.cs (.../PipingSoilLayerCreateExtensionsTest.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingSoilLayerCreateExtensionsTest.cs (.../PipingSoilLayerCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -55,7 +55,7 @@
};
// Call
- SoilLayerEntity entity = soilLayer.Create(order);
+ PipingSoilLayerEntity entity = soilLayer.Create(order);
// Assert
Assert.IsNotNull(entity);
@@ -83,7 +83,7 @@
};
// Call
- SoilLayerEntity entity = soilLayer.Create(0);
+ PipingSoilLayerEntity entity = soilLayer.Create(0);
// Assert
Assert.AreNotSame(materialName, entity.MaterialName,
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingSoilProfileCreateExtensionsTest.cs
===================================================================
diff -u -r2e94a93cca7fbb97675bff67cca2329e8b0b7505 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingSoilProfileCreateExtensionsTest.cs (.../PipingSoilProfileCreateExtensionsTest.cs) (revision 2e94a93cca7fbb97675bff67cca2329e8b0b7505)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingSoilProfileCreateExtensionsTest.cs (.../PipingSoilProfileCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -47,7 +47,7 @@
}
[Test]
- public void Create_WithCollectorAndLayers_ReturnsSoilProfileEntityWithPropertiesAndSoilLayerEntitiesSet()
+ public void Create_WithCollectorAndLayers_ReturnsPipingSoilProfileEntityWithPropertiesAndPipingSoilLayerEntitiesSet()
{
// Setup
const string testName = "testName";
@@ -61,13 +61,13 @@
var registry = new PersistenceRegistry();
// Call
- SoilProfileEntity entity = soilProfile.Create(registry);
+ PipingSoilProfileEntity entity = soilProfile.Create(registry);
// Assert
Assert.IsNotNull(entity);
Assert.AreEqual(bottom, entity.Bottom);
Assert.AreEqual(testName, entity.Name);
- Assert.AreEqual(2, entity.SoilLayerEntities.Count);
+ Assert.AreEqual(2, entity.PipingSoilLayerEntities.Count);
}
[Test]
@@ -84,7 +84,7 @@
var registry = new PersistenceRegistry();
// Call
- SoilProfileEntity entity = soilProfile.Create(registry);
+ PipingSoilProfileEntity entity = soilProfile.Create(registry);
// Assert
Assert.AreNotSame(testName, entity.Name,
@@ -93,16 +93,16 @@
}
[Test]
- public void Create_ForTheSameEntityTwice_ReturnsSameSoilProfileEntityInstance()
+ public void Create_ForTheSameEntityTwice_ReturnsSamePipingSoilProfileEntityInstance()
{
// Setup
PipingSoilProfile soilProfile = PipingSoilProfileTestFactory.CreatePipingSoilProfile();
var registry = new PersistenceRegistry();
- SoilProfileEntity firstEntity = soilProfile.Create(registry);
+ PipingSoilProfileEntity firstEntity = soilProfile.Create(registry);
// Call
- SoilProfileEntity secondEntity = soilProfile.Create(registry);
+ PipingSoilProfileEntity secondEntity = soilProfile.Create(registry);
// Assert
Assert.AreSame(firstEntity, secondEntity);
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingStochasticSoilModelCreateExtensionsTest.cs
===================================================================
diff -u -r2e94a93cca7fbb97675bff67cca2329e8b0b7505 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingStochasticSoilModelCreateExtensionsTest.cs (.../PipingStochasticSoilModelCreateExtensionsTest.cs) (revision 2e94a93cca7fbb97675bff67cca2329e8b0b7505)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingStochasticSoilModelCreateExtensionsTest.cs (.../PipingStochasticSoilModelCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -50,7 +50,7 @@
}
[Test]
- public void Create_WithCollector_ReturnsStochasticSoilModelEntityWithPropertiesSet()
+ public void Create_WithCollector_ReturnsPipingStochasticSoilModelEntityWithPropertiesSet()
{
// Setup
int order = new Random(1).Next();
@@ -65,7 +65,7 @@
Assert.IsNotNull(entity);
Assert.AreEqual(testName, entity.Name);
Assert.AreEqual(order, entity.Order);
- CollectionAssert.IsEmpty(entity.StochasticSoilProfileEntities);
+ CollectionAssert.IsEmpty(entity.PipingStochasticSoilProfileEntities);
}
[Test]
@@ -86,7 +86,7 @@
}
[Test]
- public void Create_WithStochasticSoilProfiles_ReturnsStochasticSoilModelEntityWithPropertiesAndStochasticSoilProfileEntitiesSet()
+ public void Create_WithStochasticSoilProfiles_ReturnsStochasticSoilModelEntityWithPropertiesAndPipingStochasticSoilProfileEntitiesSet()
{
// Setup
var stochasticSoilModel = new PipingStochasticSoilModel("testName")
@@ -104,7 +104,7 @@
// Assert
Assert.IsNotNull(entity);
- Assert.AreEqual(2, entity.StochasticSoilProfileEntities.Count);
+ Assert.AreEqual(2, entity.PipingStochasticSoilProfileEntities.Count);
}
[Test]
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingStochasticSoilProfileCreateExtensionsTest.cs
===================================================================
diff -u -r2e94a93cca7fbb97675bff67cca2329e8b0b7505 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingStochasticSoilProfileCreateExtensionsTest.cs (.../PipingStochasticSoilProfileCreateExtensionsTest.cs) (revision 2e94a93cca7fbb97675bff67cca2329e8b0b7505)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingStochasticSoilProfileCreateExtensionsTest.cs (.../PipingStochasticSoilProfileCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -48,7 +48,7 @@
}
[Test]
- public void Create_WithCollector_ReturnsStochasticSoilProfileEntityWithPropertiesSet()
+ public void Create_WithCollector_ReturnsPipingStochasticSoilProfileEntityWithPropertiesSet()
{
// Setup
var random = new Random(21);
@@ -58,7 +58,7 @@
var registry = new PersistenceRegistry();
// Call
- StochasticSoilProfileEntity entity = stochasticSoilProfile.Create(registry, order);
+ PipingStochasticSoilProfileEntity entity = stochasticSoilProfile.Create(registry, order);
// Assert
Assert.IsNotNull(entity);
@@ -67,7 +67,7 @@
}
[Test]
- public void Create_DifferentStochasticSoilProfilesWithSamePipingSoilProfile_ReturnsStochasticSoilProfileEntityWithSameSoilProfileEntitySet()
+ public void Create_DifferentStochasticSoilProfilesWithSamePipingSoilProfile_ReturnsPipingStochasticSoilProfileEntityWithSameSoilProfileEntitySet()
{
// Setup
PipingSoilProfile testPipingSoilProfile = PipingSoilProfileTestFactory.CreatePipingSoilProfile();
@@ -76,24 +76,24 @@
var registry = new PersistenceRegistry();
// Call
- StochasticSoilProfileEntity firstEntity = firstStochasticSoilProfile.Create(registry, 0);
- StochasticSoilProfileEntity secondEntity = secondStochasticSoilProfile.Create(registry, 0);
+ PipingStochasticSoilProfileEntity firstEntity = firstStochasticSoilProfile.Create(registry, 0);
+ PipingStochasticSoilProfileEntity secondEntity = secondStochasticSoilProfile.Create(registry, 0);
// Assert
- Assert.AreSame(firstEntity.SoilProfileEntity, secondEntity.SoilProfileEntity);
+ Assert.AreSame(firstEntity.PipingSoilProfileEntity, secondEntity.PipingSoilProfileEntity);
}
[Test]
- public void Create_SameStochasticSoilProfileMultipleTimes_ReturnSameEntity()
+ public void Create_SamePipingStochasticSoilProfileMultipleTimes_ReturnSameEntity()
{
// Setup
PipingSoilProfile soilProfile = PipingSoilProfileTestFactory.CreatePipingSoilProfile();
var stochasticSoilProfile = new PipingStochasticSoilProfile(0.4, soilProfile);
var registry = new PersistenceRegistry();
// Call
- StochasticSoilProfileEntity entity1 = stochasticSoilProfile.Create(registry, 0);
- StochasticSoilProfileEntity entity2 = stochasticSoilProfile.Create(registry, 0);
+ PipingStochasticSoilProfileEntity entity1 = stochasticSoilProfile.Create(registry, 0);
+ PipingStochasticSoilProfileEntity entity2 = stochasticSoilProfile.Create(registry, 0);
// Assert
Assert.AreSame(entity1, entity2);
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingSurfaceLineCreateExtensionsTest.cs
===================================================================
diff -u -r99f686f22091051a65ff1ee20abd68ffad713647 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingSurfaceLineCreateExtensionsTest.cs (.../PipingSurfaceLineCreateExtensionsTest.cs) (revision 99f686f22091051a65ff1ee20abd68ffad713647)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Piping/PipingSurfaceLineCreateExtensionsTest.cs (.../PipingSurfaceLineCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -176,8 +176,8 @@
string expectedXml = new Point3DXmlSerializer().ToXml(geometry);
Assert.AreEqual(expectedXml, entity.PointsXml);
- Assert.AreEqual(6, entity.CharacteristicPointEntities.Count);
- foreach (CharacteristicPointEntity characteristicPointEntity in entity.CharacteristicPointEntities)
+ Assert.AreEqual(6, entity.PipingCharacteristicPointEntities.Count);
+ foreach (PipingCharacteristicPointEntity characteristicPointEntity in entity.PipingCharacteristicPointEntities)
{
switch (characteristicPointEntity.Type)
{
@@ -254,8 +254,8 @@
string expectedXml = new Point3DXmlSerializer().ToXml(geometry);
Assert.AreEqual(expectedXml, entity.PointsXml);
- Assert.AreEqual(6, entity.CharacteristicPointEntities.Count);
- byte[] characteristicPointTypeValues = entity.CharacteristicPointEntities
+ Assert.AreEqual(6, entity.PipingCharacteristicPointEntities.Count);
+ byte[] characteristicPointTypeValues = entity.PipingCharacteristicPointEntities
.Select(cpe => cpe.Type)
.ToArray();
CollectionAssert.Contains(characteristicPointTypeValues, (byte) CharacteristicPointType.DikeToeAtRiver);
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/StabilityStoneCover/StabilityStoneCoverWaveConditionsCalculationCreateExtensionsTest.cs
===================================================================
diff -u -r38414ee18cb869ba91e6b70abc4019a39ea2e08c -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/StabilityStoneCover/StabilityStoneCoverWaveConditionsCalculationCreateExtensionsTest.cs (.../StabilityStoneCoverWaveConditionsCalculationCreateExtensionsTest.cs) (revision 38414ee18cb869ba91e6b70abc4019a39ea2e08c)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/StabilityStoneCover/StabilityStoneCoverWaveConditionsCalculationCreateExtensionsTest.cs (.../StabilityStoneCoverWaveConditionsCalculationCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -38,28 +38,6 @@
[TestFixture]
public class StabilityStoneCoverWaveConditionsCalculationCreateExtensionsTest
{
- private static IEnumerable ValidWaveConditionsInputs
- {
- get
- {
- yield return new TestCaseData(1.0, true, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.Half).SetName("ValuesSetBWTrueStepSizeHalf");
- yield return new TestCaseData(1.0, true, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.One).SetName("ValuesSetBWTrueStepSizeOne");
- yield return new TestCaseData(1.0, true, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.Two).SetName("ValuesSetBWTrueStepSizeTwo");
-
- yield return new TestCaseData(1.0, false, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.Half).SetName("ValuesSetBWFalseStepSizeHalf");
- yield return new TestCaseData(1.0, false, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.One).SetName("ValuesSetBWFalseStepSizeOne");
- yield return new TestCaseData(1.0, false, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.Two).SetName("ValuesSetBWFalseStepSizeTwo");
-
- yield return new TestCaseData(double.NaN, true, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.Half).SetName("NaNValuesBWTrueStepSizeHalf");
- yield return new TestCaseData(double.NaN, true, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.One).SetName("NaNValuesBWTrueStepSizeOne");
- yield return new TestCaseData(double.NaN, true, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.Two).SetName("NaNValuesBWTrueStepSizeTwo");
-
- yield return new TestCaseData(double.NaN, false, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.Half).SetName("NaNValuesBWFalseStepSizeHalf");
- yield return new TestCaseData(double.NaN, false, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.One).SetName("NaNValuesBWFalseStepSizeOne");
- yield return new TestCaseData(double.NaN, false, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.Two).SetName("NaNValuesBWFalseStepSizeTwo");
- }
- }
-
[Test]
public void Create_PersistenceRegistryIsNull_ThrowArgumentNullException()
{
@@ -233,5 +211,24 @@
1
}, entity.StabilityStoneCoverWaveConditionsOutputEntities.Select(oe => oe.Order));
}
+
+ private static IEnumerable ValidWaveConditionsInputs()
+ {
+ yield return new TestCaseData(1.0, true, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.Half).SetName("ValuesSetBWTrueStepSizeHalf");
+ yield return new TestCaseData(1.0, true, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.One).SetName("ValuesSetBWTrueStepSizeOne");
+ yield return new TestCaseData(1.0, true, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.Two).SetName("ValuesSetBWTrueStepSizeTwo");
+
+ yield return new TestCaseData(1.0, false, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.Half).SetName("ValuesSetBWFalseStepSizeHalf");
+ yield return new TestCaseData(1.0, false, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.One).SetName("ValuesSetBWFalseStepSizeOne");
+ yield return new TestCaseData(1.0, false, 3.58, 6.10, 3.40, 5.88, WaveConditionsInputStepSize.Two).SetName("ValuesSetBWFalseStepSizeTwo");
+
+ yield return new TestCaseData(double.NaN, true, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.Half).SetName("NaNValuesBWTrueStepSizeHalf");
+ yield return new TestCaseData(double.NaN, true, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.One).SetName("NaNValuesBWTrueStepSizeOne");
+ yield return new TestCaseData(double.NaN, true, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.Two).SetName("NaNValuesBWTrueStepSizeTwo");
+
+ yield return new TestCaseData(double.NaN, false, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.Half).SetName("NaNValuesBWFalseStepSizeHalf");
+ yield return new TestCaseData(double.NaN, false, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.One).SetName("NaNValuesBWFalseStepSizeOne");
+ yield return new TestCaseData(double.NaN, false, double.NaN, double.NaN, double.NaN, double.NaN, WaveConditionsInputStepSize.Two).SetName("NaNValuesBWFalseStepSizeTwo");
+ }
}
}
\ No newline at end of file
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/StructuresCalculationCreateExtensionsTest.cs
===================================================================
diff -u -r699aed8b7cadb16fa905b2e54c8174d0d5747b99 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/StructuresCalculationCreateExtensionsTest.cs (.../StructuresCalculationCreateExtensionsTest.cs) (revision 699aed8b7cadb16fa905b2e54c8174d0d5747b99)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/StructuresCalculationCreateExtensionsTest.cs (.../StructuresCalculationCreateExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -30,11 +30,9 @@
using Ringtoets.ClosingStructures.Data.TestUtil;
using Ringtoets.Common.Data.DikeProfiles;
using Ringtoets.Common.Data.Hydraulics;
-using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.Probability;
using Ringtoets.Common.Data.Structures;
using Ringtoets.Common.Data.TestUtil;
-using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
using Ringtoets.HeightStructures.Data;
using Ringtoets.HeightStructures.Data.TestUtil;
using Ringtoets.StabilityPointStructures.Data;
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/MigrationTo171IntegrationTest.cs
===================================================================
diff -u -rc48c65234bef938fd1c4700e5723e30bc50a7b31 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/MigrationTo171IntegrationTest.cs (.../MigrationTo171IntegrationTest.cs) (revision c48c65234bef938fd1c4700e5723e30bc50a7b31)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/MigrationTo171IntegrationTest.cs (.../MigrationTo171IntegrationTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -21,7 +21,9 @@
using System.Collections.ObjectModel;
using System.Data;
+using System.Data.SQLite;
using Application.Ringtoets.Migration.Core;
+using Core.Common.Base.IO;
using Core.Common.IO.Readers;
using Core.Common.TestUtil;
using NUnit.Framework;
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/MigrationTo172IntegrationTest.cs
===================================================================
diff -u -rfca669fef4cd37e6af2d1ab334d283f473dff203 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/MigrationTo172IntegrationTest.cs (.../MigrationTo172IntegrationTest.cs) (revision fca669fef4cd37e6af2d1ab334d283f473dff203)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/MigrationTo172IntegrationTest.cs (.../MigrationTo172IntegrationTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -79,7 +79,10 @@
AssertStabilityPointStructures(reader);
AssertForeshoreProfiles(reader);
- AssertSoilProfiles(reader, sourceFilePath);
+ AssertPipingSoilProfiles(reader, sourceFilePath);
+ AssertPipingSoilLayers(reader, sourceFilePath);
+ AssertPipingStochasticSoilProfiles(reader, sourceFilePath);
+ AssertPipingCharacteristicPoints(reader, sourceFilePath);
AssertFailureMechanismSectionResults(reader, "ClosingStructuresSectionResultEntity");
AssertFailureMechanismSectionResults(reader, "StabilityPointStructuresSectionResultEntity");
@@ -646,7 +649,6 @@
{
"AssessmentSectionEntity",
"CalculationGroupEntity",
- "CharacteristicPointEntity",
"ClosingStructureEntity",
"ClosingStructuresCalculationEntity",
"ClosingStructuresSectionResultEntity",
@@ -677,16 +679,13 @@
"PipingSectionResultEntity",
"PipingStructureSectionResultEntity",
"ProjectEntity",
- "SoilLayerEntity",
- "SoilProfileEntity",
"StabilityPointStructureEntity",
"StabilityPointStructuresCalculationEntity",
"StabilityPointStructuresFailureMechanismMetaEntity",
"StabilityPointStructuresSectionResultEntity",
"StabilityStoneCoverSectionResultEntity",
"StabilityStoneCoverWaveConditionsCalculationEntity",
"StochasticSoilModelEntity",
- "StochasticSoilProfileEntity",
"StrengthStabilityLengthwiseConstructionSectionResultEntity",
"SurfaceLineEntity",
"TechnicalInnovationSectionResultEntity",
@@ -1120,17 +1119,47 @@
reader.AssertReturnedDataIsValid(validateStabilityPointStructures);
}
- private static void AssertSoilProfiles(MigratedDatabaseReader reader, string sourceFilePath)
+ private static void AssertPipingSoilProfiles(MigratedDatabaseReader reader, string sourceFilePath)
{
string validateSoilProfiles =
$"ATTACH DATABASE \"{sourceFilePath}\" AS SOURCEPROJECT; " +
"SELECT COUNT() = (SELECT COUNT() FROM [SOURCEPROJECT].SoilProfileEntity) " +
- "FROM SoilProfileEntity " +
+ "FROM PipingSoilProfileEntity " +
"WHERE [SourceType] IN (1,2);" +
"DETACH SOURCEPROJECT;";
reader.AssertReturnedDataIsValid(validateSoilProfiles);
}
+ private static void AssertPipingSoilLayers(MigratedDatabaseReader reader, string sourceFilePath)
+ {
+ string validateSoilProfiles =
+ $"ATTACH DATABASE \"{sourceFilePath}\" AS SOURCEPROJECT; " +
+ "SELECT COUNT() = (SELECT COUNT() FROM [SOURCEPROJECT].SoilLayerEntity) " +
+ "FROM PipingSoilLayerEntity; " +
+ "DETACH SOURCEPROJECT;";
+ reader.AssertReturnedDataIsValid(validateSoilProfiles);
+ }
+
+ private static void AssertPipingStochasticSoilProfiles(MigratedDatabaseReader reader, string sourceFilePath)
+ {
+ string validateSoilProfiles =
+ $"ATTACH DATABASE \"{sourceFilePath}\" AS SOURCEPROJECT; " +
+ "SELECT COUNT() = (SELECT COUNT() FROM [SOURCEPROJECT].StochasticSoilProfileEntity) " +
+ "FROM PipingStochasticSoilProfileEntity; " +
+ "DETACH SOURCEPROJECT;";
+ reader.AssertReturnedDataIsValid(validateSoilProfiles);
+ }
+
+ private static void AssertPipingCharacteristicPoints(MigratedDatabaseReader reader, string sourceFilePath)
+ {
+ string validateSoilProfiles =
+ $"ATTACH DATABASE \"{sourceFilePath}\" AS SOURCEPROJECT; " +
+ "SELECT COUNT() = (SELECT COUNT() FROM [SOURCEPROJECT].CharacteristicPointEntity) " +
+ "FROM PipingCharacteristicPointEntity; " +
+ "DETACH SOURCEPROJECT;";
+ reader.AssertReturnedDataIsValid(validateSoilProfiles);
+ }
+
private static void AssertFailureMechanismSectionResults(MigratedDatabaseReader reader, string sectionResultTable)
{
string validateFailureMechanismSectionResults =
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/BackgroundDataEntityReadExtensionsTest.cs
===================================================================
diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/BackgroundDataEntityReadExtensionsTest.cs (.../BackgroundDataEntityReadExtensionsTest.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/BackgroundDataEntityReadExtensionsTest.cs (.../BackgroundDataEntityReadExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -35,11 +35,8 @@
[Test]
public void Read_EntityNull_ThrowArgumentNullException()
{
- // Setup
- BackgroundDataEntity entity = null;
-
// Call
- TestDelegate test = () => entity.Read();
+ TestDelegate test = () => ((BackgroundDataEntity) null).Read();
// Assert
var exception = Assert.Throws(test);
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/BackgroundDataMetaEntityReadExtensionsTest.cs
===================================================================
diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/BackgroundDataMetaEntityReadExtensionsTest.cs (.../BackgroundDataMetaEntityReadExtensionsTest.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/BackgroundDataMetaEntityReadExtensionsTest.cs (.../BackgroundDataMetaEntityReadExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -33,11 +33,8 @@
[Test]
public void Read_EntityNull_ThrowArgumentNullException()
{
- // Setup
- BackgroundDataMetaEntity entity = null;
-
// Call
- TestDelegate test = () => entity.Read();
+ TestDelegate test = () => ((BackgroundDataMetaEntity) null).Read();
// Assert
var exception = Assert.Throws(test);
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HydraulicLocationEntityReadExtensionsTest.cs
===================================================================
diff -u -r699aed8b7cadb16fa905b2e54c8174d0d5747b99 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HydraulicLocationEntityReadExtensionsTest.cs (.../HydraulicLocationEntityReadExtensionsTest.cs) (revision 699aed8b7cadb16fa905b2e54c8174d0d5747b99)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HydraulicLocationEntityReadExtensionsTest.cs (.../HydraulicLocationEntityReadExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -23,7 +23,6 @@
using System.Linq;
using Application.Ringtoets.Storage.DbContext;
using Application.Ringtoets.Storage.Read;
-using Application.Ringtoets.Storage.TestUtil;
using Core.Common.Base.Data;
using Core.Common.TestUtil;
using NUnit.Framework;
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingCalculationEntityReadExtensionsTest.cs
===================================================================
diff -u -r99f686f22091051a65ff1ee20abd68ffad713647 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingCalculationEntityReadExtensionsTest.cs (.../PipingCalculationEntityReadExtensionsTest.cs) (revision 99f686f22091051a65ff1ee20abd68ffad713647)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingCalculationEntityReadExtensionsTest.cs (.../PipingCalculationEntityReadExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -252,14 +252,14 @@
var stochasticSoilModelEntity = new StochasticSoilModelEntity();
var stochasticSoilProfile = new PipingStochasticSoilProfile(1, PipingSoilProfileTestFactory.CreatePipingSoilProfile());
- var stochasticSoilProfileEntity = new StochasticSoilProfileEntity
+ var stochasticSoilProfileEntity = new PipingStochasticSoilProfileEntity
{
StochasticSoilModelEntity = stochasticSoilModelEntity
};
var entity = new PipingCalculationEntity
{
- StochasticSoilProfileEntity = stochasticSoilProfileEntity,
+ PipingStochasticSoilProfileEntity = stochasticSoilProfileEntity,
EntryPointL = 1,
ExitPointL = 2,
DampingFactorExitMean = 1
@@ -281,14 +281,14 @@
public void Read_EntityWithStochasticSoilProfileEntityNotYetInCollector_CalculationWithCreatedStochasticSoilProfileAndRegisteredNewEntities()
{
// Setup
- var stochasticSoilProfileEntity = new StochasticSoilProfileEntity
+ var stochasticSoilProfileEntity = new PipingStochasticSoilProfileEntity
{
- SoilProfileEntity = new SoilProfileEntity
+ PipingSoilProfileEntity = new PipingSoilProfileEntity
{
Name = "SoilProfile",
- SoilLayerEntities =
+ PipingSoilLayerEntities =
{
- new SoilLayerEntity()
+ new PipingSoilLayerEntity()
}
}
};
@@ -297,7 +297,7 @@
{
Name = "StochasticSoilModel",
StochasticSoilModelSegmentPointXml = new Point2DXmlSerializer().ToXml(new Point2D[0]),
- StochasticSoilProfileEntities =
+ PipingStochasticSoilProfileEntities =
{
stochasticSoilProfileEntity
}
@@ -306,7 +306,7 @@
var entity = new PipingCalculationEntity
{
- StochasticSoilProfileEntity = stochasticSoilProfileEntity,
+ PipingStochasticSoilProfileEntity = stochasticSoilProfileEntity,
EntryPointL = 1,
ExitPointL = 2,
DampingFactorExitMean = 1
@@ -373,7 +373,7 @@
Assert.IsNotNull(calculation.SemiProbabilisticOutput);
}
- private void AssertRoundedDouble(double? expectedValue, RoundedDouble actualValue)
+ private static void AssertRoundedDouble(double? expectedValue, RoundedDouble actualValue)
{
Assert.IsTrue(expectedValue.HasValue);
Assert.AreEqual(expectedValue.Value, actualValue, actualValue.GetAccuracy());
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingSoilLayerEntityReadExtensionsTest.cs
===================================================================
diff -u
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingSoilLayerEntityReadExtensionsTest.cs (revision 0)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingSoilLayerEntityReadExtensionsTest.cs (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -0,0 +1,87 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.
+//
+// This program 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.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.Drawing;
+using Application.Ringtoets.Storage.DbContext;
+using Application.Ringtoets.Storage.Read.Piping;
+using NUnit.Framework;
+using Ringtoets.Piping.Primitives;
+
+namespace Application.Ringtoets.Storage.Test.Read.Piping
+{
+ [TestFixture]
+ public class PipingSoilLayerEntityReadExtensionsTest
+ {
+ [Test]
+ [TestCase(true)]
+ [TestCase(false)]
+ public void Read_WithValues_ReturnPipingSoilLayerWithDoubleParameterValues(bool isAquifer)
+ {
+ // Setup
+ var random = new Random(21);
+ double top = random.NextDouble();
+ int color = Color.AliceBlue.ToArgb();
+ const string materialName = "sand";
+
+ double belowPhreaticLevelMean = random.NextDouble();
+ double belowPhreaticLevelDeviation = random.NextDouble();
+ double belowPhreaticLevelShift = random.NextDouble();
+ double diameterD70Mean = random.NextDouble();
+ double diameterD70CoefficientOfVariation = random.NextDouble();
+ double permeabilityMean = random.NextDouble();
+ double permeabilityCoefficientOfVariation = random.NextDouble();
+
+ var entity = new PipingSoilLayerEntity
+ {
+ Top = top,
+ IsAquifer = Convert.ToByte(isAquifer),
+ Color = color,
+ MaterialName = materialName,
+ BelowPhreaticLevelMean = belowPhreaticLevelMean,
+ BelowPhreaticLevelDeviation = belowPhreaticLevelDeviation,
+ BelowPhreaticLevelShift = belowPhreaticLevelShift,
+ DiameterD70Mean = diameterD70Mean,
+ DiameterD70CoefficientOfVariation = diameterD70CoefficientOfVariation,
+ PermeabilityMean = permeabilityMean,
+ PermeabilityCoefficientOfVariation = permeabilityCoefficientOfVariation
+ };
+
+ // Call
+ PipingSoilLayer layer = entity.Read();
+
+ // Assert
+ Assert.IsNotNull(layer);
+ Assert.AreEqual(top, layer.Top, 1e-6);
+ Assert.AreEqual(isAquifer, layer.IsAquifer);
+ Assert.AreEqual(Color.FromArgb(color), layer.Color);
+ Assert.AreEqual(materialName, layer.MaterialName);
+
+ Assert.AreEqual(belowPhreaticLevelMean, layer.BelowPhreaticLevelMean);
+ Assert.AreEqual(belowPhreaticLevelDeviation, layer.BelowPhreaticLevelDeviation);
+ Assert.AreEqual(belowPhreaticLevelShift, layer.BelowPhreaticLevelShift);
+ Assert.AreEqual(diameterD70Mean, layer.DiameterD70Mean);
+ Assert.AreEqual(diameterD70CoefficientOfVariation, layer.DiameterD70CoefficientOfVariation);
+ Assert.AreEqual(permeabilityMean, layer.PermeabilityMean);
+ Assert.AreEqual(permeabilityCoefficientOfVariation, layer.PermeabilityCoefficientOfVariation);
+ }
+ }
+}
\ No newline at end of file
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingSoilProfileEntityReadExtensionsTest.cs
===================================================================
diff -u
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingSoilProfileEntityReadExtensionsTest.cs (revision 0)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingSoilProfileEntityReadExtensionsTest.cs (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -0,0 +1,153 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.
+//
+// This program 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.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.Linq;
+using Application.Ringtoets.Storage.DbContext;
+using Application.Ringtoets.Storage.Read;
+using Application.Ringtoets.Storage.Read.Piping;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+using Ringtoets.Piping.Primitives;
+
+namespace Application.Ringtoets.Storage.Test.Read.Piping
+{
+ [TestFixture]
+ public class PipingSoilProfileEntityReadExtensionsTest
+ {
+ [Test]
+ public void Read_WithoutCollector_ThrowsArgumentNullException()
+ {
+ // Setup
+ var entity = new PipingSoilProfileEntity();
+
+ // Call
+ TestDelegate test = () => entity.Read(null);
+
+ // Assert
+ string parameter = Assert.Throws(test).ParamName;
+ Assert.AreEqual("collector", parameter);
+ }
+
+ [Test]
+ public void Read_WithCollector_ReturnsNewPipingSoilProfileWithPropertiesSetAndEntityRegistered()
+ {
+ // Setup
+ const string testName = "testName";
+ var random = new Random(21);
+ double bottom = random.NextDouble();
+ var sourceType = random.NextEnumValue();
+ var entity = new PipingSoilProfileEntity
+ {
+ Name = testName,
+ Bottom = bottom,
+ SourceType = (byte) sourceType,
+ PipingSoilLayerEntities =
+ {
+ new PipingSoilLayerEntity
+ {
+ Top = bottom + 0.5,
+ MaterialName = "A",
+ Order = 1
+ },
+ new PipingSoilLayerEntity
+ {
+ Top = bottom + 1.2,
+ MaterialName = "B",
+ Order = 0
+ }
+ }
+ };
+ var collector = new ReadConversionCollector();
+
+ // Call
+ PipingSoilProfile profile = entity.Read(collector);
+
+ // Assert
+ Assert.IsNotNull(profile);
+ Assert.AreEqual(testName, profile.Name);
+ Assert.AreEqual(bottom, profile.Bottom, 1e-6);
+ Assert.AreEqual(sourceType, profile.SoilProfileSourceType);
+ CollectionAssert.AreEqual(new[]
+ {
+ "B",
+ "A"
+ }, profile.Layers.Select(l => l.MaterialName));
+
+ Assert.IsTrue(collector.Contains(entity));
+ }
+
+ [Test]
+ public void Read_WithCollectorWithoutLayers_ThrowsArgumentException()
+ {
+ // Setup
+ var random = new Random(21);
+ var entity = new PipingSoilProfileEntity
+ {
+ Name = "Name",
+ Bottom = random.NextDouble(),
+ SourceType = (byte) random.NextEnumValue()
+ };
+ var collector = new ReadConversionCollector();
+
+ // Call
+ TestDelegate test = () => entity.Read(collector);
+
+ // Assert
+ Assert.Throws(test);
+ }
+
+ [Test]
+ public void Read_WithCollectorReadTwice_ReturnsSamePipingSoilProfile()
+ {
+ // Setup
+ const string testName = "testName";
+ var random = new Random(21);
+ double bottom = random.NextDouble();
+ var entity = new PipingSoilProfileEntity
+ {
+ Name = testName,
+ Bottom = bottom,
+ SourceType = (byte) random.NextEnumValue(),
+ PipingSoilLayerEntities =
+ {
+ new PipingSoilLayerEntity
+ {
+ Top = bottom + 0.5
+ },
+ new PipingSoilLayerEntity
+ {
+ Top = bottom + 1.2
+ }
+ }
+ };
+ var collector = new ReadConversionCollector();
+
+ PipingSoilProfile profile = entity.Read(collector);
+
+ // Call
+ PipingSoilProfile secondFailureMechanism = entity.Read(collector);
+
+ // Assert
+ Assert.AreSame(profile, secondFailureMechanism);
+ }
+ }
+}
\ No newline at end of file
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingStochasticSoilProfileEntityReadExtensionsTest.cs
===================================================================
diff -u
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingStochasticSoilProfileEntityReadExtensionsTest.cs (revision 0)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingStochasticSoilProfileEntityReadExtensionsTest.cs (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -0,0 +1,145 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets 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.
+//
+// This program 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.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Application.Ringtoets.Storage.DbContext;
+using Application.Ringtoets.Storage.Read;
+using Application.Ringtoets.Storage.Read.Piping;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+using Ringtoets.Piping.Data.SoilProfile;
+using Ringtoets.Piping.Primitives;
+
+namespace Application.Ringtoets.Storage.Test.Read.Piping
+{
+ [TestFixture]
+ public class PipingStochasticSoilProfileEntityReadExtensionsTest
+ {
+ [Test]
+ public void Read_WithoutCollector_ThrowsArgumentNullException()
+ {
+ // Setup
+ var entity = new PipingStochasticSoilProfileEntity();
+
+ // Call
+ TestDelegate test = () => entity.Read(null);
+
+ // Assert
+ string parameter = Assert.Throws(test).ParamName;
+ Assert.AreEqual("collector", parameter);
+ }
+
+ [Test]
+ public void Read_WithCollector_ReturnsNewStochasticSoilProfileWithPropertiesSetAndEntityRegistered()
+ {
+ // Setup
+ var random = new Random(21);
+ double probability = random.NextDouble();
+ var entity = new PipingStochasticSoilProfileEntity
+ {
+ Probability = probability,
+ PipingSoilProfileEntity = new PipingSoilProfileEntity
+ {
+ Name = "StochasticSoilProfile",
+ SourceType = (byte) random.NextEnumValue(),
+ PipingSoilLayerEntities =
+ {
+ new PipingSoilLayerEntity()
+ }
+ }
+ };
+ var collector = new ReadConversionCollector();
+
+ // Call
+ PipingStochasticSoilProfile profile = entity.Read(collector);
+
+ // Assert
+ Assert.IsNotNull(profile);
+ Assert.AreEqual(probability, profile.Probability, 1e-6);
+ Assert.IsTrue(collector.Contains(entity));
+ }
+
+ [Test]
+ public void Read_WithCollectorDifferentStochasticSoilProfileEntitiesWithSameSoilProfileEntity_ReturnsStochasticSoilProfilesWithSamePipingSoilProfile()
+ {
+ // Setup
+ var random = new Random(21);
+ double probability = random.NextDouble();
+ var soilProfileEntity = new PipingSoilProfileEntity
+ {
+ Name = "StochasticSoilProfile",
+ SourceType = (byte) random.NextEnumValue(),
+ PipingSoilLayerEntities =
+ {
+ new PipingSoilLayerEntity()
+ }
+ };
+ var firstEntity = new PipingStochasticSoilProfileEntity
+ {
+ Probability = probability,
+ PipingSoilProfileEntity = soilProfileEntity
+ };
+ var secondEntity = new PipingStochasticSoilProfileEntity
+ {
+ Probability = 1 - probability,
+ PipingSoilProfileEntity = soilProfileEntity
+ };
+ var collector = new ReadConversionCollector();
+
+ PipingStochasticSoilProfile firstProfile = firstEntity.Read(collector);
+
+ // Call
+ PipingStochasticSoilProfile secondProfile = secondEntity.Read(collector);
+
+ // Assert
+ Assert.AreNotSame(firstProfile, secondProfile);
+ Assert.AreSame(firstProfile.SoilProfile, secondProfile.SoilProfile);
+ }
+
+ [Test]
+ public void Read_SameStochasticSoilProfileEntityMultipleTimes_ReturnSameStochasticSoilProfile()
+ {
+ // Setup
+ var random = new Random(9);
+ var entity = new PipingStochasticSoilProfileEntity
+ {
+ PipingSoilProfileEntity = new PipingSoilProfileEntity
+ {
+ Name = "StochasticSoilProfile",
+ SourceType = (byte) random.NextEnumValue(),
+ PipingSoilLayerEntities =
+ {
+ new PipingSoilLayerEntity()
+ }
+ }
+ };
+
+ var collector = new ReadConversionCollector();
+
+ // Call
+ PipingStochasticSoilProfile profile1 = entity.Read(collector);
+ PipingStochasticSoilProfile profile2 = entity.Read(collector);
+
+ // Assert
+ Assert.AreSame(profile1, profile2);
+ }
+ }
+}
\ No newline at end of file
Fisheye: Tag a096cb901099c85dbaafa2dba6c69288464c248e refers to a dead (removed) revision in file `Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/SoilLayerEntityReadExtensionsTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag a096cb901099c85dbaafa2dba6c69288464c248e refers to a dead (removed) revision in file `Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/SoilProfileEntityReadExtensionsTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/StochasticSoilModelEntityReadExtensionsTest.cs
===================================================================
diff -u -rce34c2b3bedc23854224636d4c38f3f39cd185f4 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/StochasticSoilModelEntityReadExtensionsTest.cs (.../StochasticSoilModelEntityReadExtensionsTest.cs) (revision ce34c2b3bedc23854224636d4c38f3f39cd185f4)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/StochasticSoilModelEntityReadExtensionsTest.cs (.../StochasticSoilModelEntityReadExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -90,34 +90,34 @@
}
[Test]
- public void Read_WithCollectorWithStochasticSoilProfiles_ReturnsNewStochasticSoilModelWithStochasticSoilProfiles()
+ public void Read_WithCollectorWithPipingStochasticSoilProfiles_ReturnsNewStochasticSoilModelWithPipingStochasticSoilProfiles()
{
// Setup
var entity = new StochasticSoilModelEntity
{
Name = "StochasticSoilModel",
StochasticSoilModelSegmentPointXml = new Point2DXmlSerializer().ToXml(new Point2D[0]),
- StochasticSoilProfileEntities =
+ PipingStochasticSoilProfileEntities =
{
- new StochasticSoilProfileEntity
+ new PipingStochasticSoilProfileEntity
{
- SoilProfileEntity = new SoilProfileEntity
+ PipingSoilProfileEntity = new PipingSoilProfileEntity
{
- SoilLayerEntities =
+ PipingSoilLayerEntities =
{
- new SoilLayerEntity()
+ new PipingSoilLayerEntity()
},
Name = "A"
},
Order = 1
},
- new StochasticSoilProfileEntity
+ new PipingStochasticSoilProfileEntity
{
- SoilProfileEntity = new SoilProfileEntity
+ PipingSoilProfileEntity = new PipingSoilProfileEntity
{
- SoilLayerEntities =
+ PipingSoilLayerEntities =
{
- new SoilLayerEntity()
+ new PipingSoilLayerEntity()
},
Name = "B"
},
Fisheye: Tag a096cb901099c85dbaafa2dba6c69288464c248e refers to a dead (removed) revision in file `Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/StochasticSoilProfileEntityReadExtensionsTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/SurfaceLineEntityReadExtensionsTest.cs
===================================================================
diff -u -r99f686f22091051a65ff1ee20abd68ffad713647 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/SurfaceLineEntityReadExtensionsTest.cs (.../SurfaceLineEntityReadExtensionsTest.cs) (revision 99f686f22091051a65ff1ee20abd68ffad713647)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/SurfaceLineEntityReadExtensionsTest.cs (.../SurfaceLineEntityReadExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -196,12 +196,12 @@
ReferenceLineIntersectionY = intersectionY,
PointsXml = new Point3DXmlSerializer().ToXml(points)
};
- entity.CharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[1], CharacteristicPointType.BottomDitchDikeSide));
- entity.CharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[2], CharacteristicPointType.BottomDitchPolderSide));
- entity.CharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[3], CharacteristicPointType.DikeToeAtPolder));
- entity.CharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[4], CharacteristicPointType.DikeToeAtRiver));
- entity.CharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[5], CharacteristicPointType.DitchDikeSide));
- entity.CharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[6], CharacteristicPointType.DitchPolderSide));
+ entity.PipingCharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[1], CharacteristicPointType.BottomDitchDikeSide));
+ entity.PipingCharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[2], CharacteristicPointType.BottomDitchPolderSide));
+ entity.PipingCharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[3], CharacteristicPointType.DikeToeAtPolder));
+ entity.PipingCharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[4], CharacteristicPointType.DikeToeAtRiver));
+ entity.PipingCharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[5], CharacteristicPointType.DitchDikeSide));
+ entity.PipingCharacteristicPointEntities.Add(CreateCharacteristicPointEntity(points[6], CharacteristicPointType.DitchPolderSide));
// Call
PipingSurfaceLine surfaceLine = entity.Read(collector);
@@ -246,44 +246,44 @@
ReferenceLineIntersectionX = intersectionX,
ReferenceLineIntersectionY = intersectionY,
PointsXml = new Point3DXmlSerializer().ToXml(points),
- CharacteristicPointEntities =
+ PipingCharacteristicPointEntities =
{
- new CharacteristicPointEntity
+ new PipingCharacteristicPointEntity
{
X = x,
Y = y,
Z = z,
Type = (byte) CharacteristicPointType.BottomDitchDikeSide
},
- new CharacteristicPointEntity
+ new PipingCharacteristicPointEntity
{
X = x,
Y = y,
Z = z,
Type = (byte) CharacteristicPointType.BottomDitchPolderSide
},
- new CharacteristicPointEntity
+ new PipingCharacteristicPointEntity
{
X = x,
Y = y,
Z = z,
Type = (byte) CharacteristicPointType.DikeToeAtPolder
},
- new CharacteristicPointEntity
+ new PipingCharacteristicPointEntity
{
X = x,
Y = y,
Z = z,
Type = (byte) CharacteristicPointType.DikeToeAtRiver
},
- new CharacteristicPointEntity
+ new PipingCharacteristicPointEntity
{
X = x,
Y = y,
Z = z,
Type = (byte) CharacteristicPointType.DitchDikeSide
},
- new CharacteristicPointEntity
+ new PipingCharacteristicPointEntity
{
X = x,
Y = y,
@@ -333,9 +333,9 @@
Assert.AreSame(surfaceLine1, surfaceLine2);
}
- private static CharacteristicPointEntity CreateCharacteristicPointEntity(Point3D point, CharacteristicPointType type)
+ private static PipingCharacteristicPointEntity CreateCharacteristicPointEntity(Point3D point, CharacteristicPointType type)
{
- return new CharacteristicPointEntity
+ return new PipingCharacteristicPointEntity
{
Type = (byte) type,
X = point.X,
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ReadConversionCollectorTest.cs
===================================================================
diff -u -r99f686f22091051a65ff1ee20abd68ffad713647 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ReadConversionCollectorTest.cs (.../ReadConversionCollectorTest.cs) (revision 99f686f22091051a65ff1ee20abd68ffad713647)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ReadConversionCollectorTest.cs (.../ReadConversionCollectorTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -50,25 +50,25 @@
#region StochasticSoilProfileEntity: Read, Contains, Get
[Test]
- public void Contains_WithoutStochasticSoilProfileEntity_ThrowsArgumentNullException()
+ public void Contains_WithoutPipingStochasticSoilProfileEntity_ThrowsArgumentNullException()
{
// Setup
var collector = new ReadConversionCollector();
// Call
- TestDelegate test = () => collector.Contains((StochasticSoilProfileEntity) null);
+ TestDelegate test = () => collector.Contains((PipingStochasticSoilProfileEntity) null);
// Assert
string paramName = Assert.Throws(test).ParamName;
Assert.AreEqual("entity", paramName);
}
[Test]
- public void Contains_StochasticSoilProfileEntityAdded_ReturnsTrue()
+ public void Contains_PipingStochasticSoilProfileEntityAdded_ReturnsTrue()
{
// Setup
var collector = new ReadConversionCollector();
- var entity = new StochasticSoilProfileEntity();
+ var entity = new PipingStochasticSoilProfileEntity();
collector.Read(entity, new PipingStochasticSoilProfile(1, PipingSoilProfileTestFactory.CreatePipingSoilProfile()));
// Call
@@ -79,11 +79,11 @@
}
[Test]
- public void Contains_NoStochasticSoilProfileEntityAdded_ReturnsFalse()
+ public void Contains_NoPipingStochasticSoilProfileEntityAdded_ReturnsFalse()
{
// Setup
var collector = new ReadConversionCollector();
- var entity = new StochasticSoilProfileEntity();
+ var entity = new PipingStochasticSoilProfileEntity();
// Call
bool result = collector.Contains(entity);
@@ -93,12 +93,12 @@
}
[Test]
- public void Contains_OtherStochasticSoilProfileEntityAdded_ReturnsFalse()
+ public void Contains_OtherPipingStochasticSoilProfileEntityAdded_ReturnsFalse()
{
// Setup
var collector = new ReadConversionCollector();
- var entity = new StochasticSoilProfileEntity();
- collector.Read(new StochasticSoilProfileEntity(), new PipingStochasticSoilProfile(
+ var entity = new PipingStochasticSoilProfileEntity();
+ collector.Read(new PipingStochasticSoilProfileEntity(), new PipingStochasticSoilProfile(
0.4, PipingSoilProfileTestFactory.CreatePipingSoilProfile()));
// Call
@@ -109,26 +109,26 @@
}
[Test]
- public void Get_WithoutStochasticSoilProfileEntity_ThrowsArgumentNullException()
+ public void Get_WithoutPipingStochasticSoilProfileEntity_ThrowsArgumentNullException()
{
// Setup
var collector = new ReadConversionCollector();
// Call
- TestDelegate test = () => collector.Get((StochasticSoilProfileEntity) null);
+ TestDelegate test = () => collector.Get((PipingStochasticSoilProfileEntity) null);
// Assert
string paramName = Assert.Throws(test).ParamName;
Assert.AreEqual("entity", paramName);
}
[Test]
- public void Get_StochasticSoilProfileEntityAdded_ReturnsReadStochasticSoilProfile()
+ public void Get_PipingStochasticSoilProfileEntityAdded_ReturnsReadStochasticSoilProfile()
{
// Setup
var collector = new ReadConversionCollector();
var profile = new PipingStochasticSoilProfile(0.5, PipingSoilProfileTestFactory.CreatePipingSoilProfile());
- var entity = new StochasticSoilProfileEntity();
+ var entity = new PipingStochasticSoilProfileEntity();
collector.Read(entity, profile);
// Call
@@ -139,11 +139,11 @@
}
[Test]
- public void Get_NoStochasticSoilProfileEntityAdded_ThrowsInvalidOperationException()
+ public void Get_NoPipingStochasticSoilProfileEntityAdded_ThrowsInvalidOperationException()
{
// Setup
var collector = new ReadConversionCollector();
- var entity = new StochasticSoilProfileEntity();
+ var entity = new PipingStochasticSoilProfileEntity();
// Call
TestDelegate test = () => collector.Get(entity);
@@ -153,12 +153,12 @@
}
[Test]
- public void Get_OtherStochasticSoilProfileEntityAdded_ThrowsInvalidOperationException()
+ public void Get_OtherPipingStochasticSoilProfileEntityAdded_ThrowsInvalidOperationException()
{
// Setup
var collector = new ReadConversionCollector();
- var entity = new StochasticSoilProfileEntity();
- collector.Read(new StochasticSoilProfileEntity(), new PipingStochasticSoilProfile(
+ var entity = new PipingStochasticSoilProfileEntity();
+ collector.Read(new PipingStochasticSoilProfileEntity(), new PipingStochasticSoilProfile(
0.7, PipingSoilProfileTestFactory.CreatePipingSoilProfile()));
// Call
@@ -184,13 +184,13 @@
}
[Test]
- public void Read_WithNullStochasticSoilProfile_ThrowsArgumentNullException()
+ public void Read_WithNullPipingStochasticSoilProfile_ThrowsArgumentNullException()
{
// Setup
var collector = new ReadConversionCollector();
// Call
- TestDelegate test = () => collector.Read(new StochasticSoilProfileEntity(), null);
+ TestDelegate test = () => collector.Read(new PipingStochasticSoilProfileEntity(), null);
// Assert
string paramName = Assert.Throws(test).ParamName;
@@ -202,25 +202,25 @@
#region SoilProfileEntity: Read, Contains, Get
[Test]
- public void Contains_WithoutEntity_ThrowsArgumentNullException()
+ public void Contains_WithoutPipingSoilProfileEntity_ThrowsArgumentNullException()
{
// Setup
var collector = new ReadConversionCollector();
// Call
- TestDelegate test = () => collector.Contains((SoilProfileEntity) null);
+ TestDelegate test = () => collector.Contains((PipingSoilProfileEntity) null);
// Assert
string paramName = Assert.Throws(test).ParamName;
Assert.AreEqual("entity", paramName);
}
[Test]
- public void Contains_SoilProfileAdded_ReturnsTrue()
+ public void Contains_PipingSoilProfileAdded_ReturnsTrue()
{
// Setup
var collector = new ReadConversionCollector();
- var entity = new SoilProfileEntity();
+ var entity = new PipingSoilProfileEntity();
collector.Read(entity, PipingSoilProfileTestFactory.CreatePipingSoilProfile());
// Call
@@ -231,11 +231,11 @@
}
[Test]
- public void Contains_NoSoilProfileAdded_ReturnsFalse()
+ public void Contains_NoPipingSoilProfileAdded_ReturnsFalse()
{
// Setup
var collector = new ReadConversionCollector();
- var entity = new SoilProfileEntity();
+ var entity = new PipingSoilProfileEntity();
// Call
bool result = collector.Contains(entity);
@@ -245,12 +245,12 @@
}
[Test]
- public void Contains_OtherSoilProfileEntityAdded_ReturnsFalse()
+ public void Contains_OtherPipingSoilProfileEntityAdded_ReturnsFalse()
{
// Setup
var collector = new ReadConversionCollector();
- var entity = new SoilProfileEntity();
- collector.Read(new SoilProfileEntity(), PipingSoilProfileTestFactory.CreatePipingSoilProfile());
+ var entity = new PipingSoilProfileEntity();
+ collector.Read(new PipingSoilProfileEntity(), PipingSoilProfileTestFactory.CreatePipingSoilProfile());
// Call
bool result = collector.Contains(entity);
@@ -260,26 +260,26 @@
}
[Test]
- public void Get_WithoutSoilProfileEntity_ThrowsArgumentNullException()
+ public void Get_WithoutPipingSoilProfileEntity_ThrowsArgumentNullException()
{
// Setup
var collector = new ReadConversionCollector();
// Call
- TestDelegate test = () => collector.Get((SoilProfileEntity) null);
+ TestDelegate test = () => collector.Get((PipingSoilProfileEntity) null);
// Assert
string paramName = Assert.Throws(test).ParamName;
Assert.AreEqual("entity", paramName);
}
[Test]
- public void Get_SoilProfileAdded_ReturnsEntity()
+ public void Get_PipingSoilProfileAdded_ReturnsEntity()
{
// Setup
var collector = new ReadConversionCollector();
PipingSoilProfile profile = PipingSoilProfileTestFactory.CreatePipingSoilProfile();
- var entity = new SoilProfileEntity();
+ var entity = new PipingSoilProfileEntity();
collector.Read(entity, profile);
// Call
@@ -290,11 +290,11 @@
}
[Test]
- public void Get_NoSoilProfileAdded_ThrowsInvalidOperationException()
+ public void Get_NoPipingSoilProfileAdded_ThrowsInvalidOperationException()
{
// Setup
var collector = new ReadConversionCollector();
- var entity = new SoilProfileEntity();
+ var entity = new PipingSoilProfileEntity();
// Call
TestDelegate test = () => collector.Get(entity);
@@ -304,12 +304,12 @@
}
[Test]
- public void Get_OtherSoilProfileAdded_ThrowsInvalidOperationException()
+ public void Get_OtherPipingSoilProfileAdded_ThrowsInvalidOperationException()
{
// Setup
var collector = new ReadConversionCollector();
- var entity = new SoilProfileEntity();
- collector.Read(new SoilProfileEntity(), PipingSoilProfileTestFactory.CreatePipingSoilProfile());
+ var entity = new PipingSoilProfileEntity();
+ collector.Read(new PipingSoilProfileEntity(), PipingSoilProfileTestFactory.CreatePipingSoilProfile());
// Call
TestDelegate test = () => collector.Get(entity);
@@ -319,7 +319,7 @@
}
[Test]
- public void Read_WithNullSoilProfileEntity_ThrowsArgumentNullException()
+ public void Read_WithNullPipingSoilProfileEntity_ThrowsArgumentNullException()
{
// Setup
var collector = new ReadConversionCollector();
@@ -333,13 +333,13 @@
}
[Test]
- public void Read_WithNullProfileEntity_ThrowsArgumentNullException()
+ public void Read_WithNullPipingSoilProfile_ThrowsArgumentNullException()
{
// Setup
var collector = new ReadConversionCollector();
// Call
- TestDelegate test = () => collector.Read(new SoilProfileEntity(), null);
+ TestDelegate test = () => collector.Read(new PipingSoilProfileEntity(), null);
// Assert
string paramName = Assert.Throws(test).ParamName;
Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/StabilityPointStructures/StabilityPointStructuresCalculationEntityReadExtensionsTest.cs
===================================================================
diff -u -r699aed8b7cadb16fa905b2e54c8174d0d5747b99 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/StabilityPointStructures/StabilityPointStructuresCalculationEntityReadExtensionsTest.cs (.../StabilityPointStructuresCalculationEntityReadExtensionsTest.cs) (revision 699aed8b7cadb16fa905b2e54c8174d0d5747b99)
+++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/StabilityPointStructures/StabilityPointStructuresCalculationEntityReadExtensionsTest.cs (.../StabilityPointStructuresCalculationEntityReadExtensionsTest.cs) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -26,7 +26,6 @@
using NUnit.Framework;
using Ringtoets.Common.Data.DikeProfiles;
using Ringtoets.Common.Data.Hydraulics;
-using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.Probability;
using Ringtoets.Common.Data.Structures;
using Ringtoets.Common.Data.TestUtil;
Index: build/DatabaseStructure.sql
===================================================================
diff -u -r2fca6955f03c0cf6b3e9c0dbfa19b40ac5a5d843 -ra096cb901099c85dbaafa2dba6c69288464c248e
--- build/DatabaseStructure.sql (.../DatabaseStructure.sql) (revision 2fca6955f03c0cf6b3e9c0dbfa19b40ac5a5d843)
+++ build/DatabaseStructure.sql (.../DatabaseStructure.sql) (revision a096cb901099c85dbaafa2dba6c69288464c248e)
@@ -1,6 +1,6 @@
/* ---------------------------------------------------- */
/* Generated by Enterprise Architect Version 12.0 */
-/* Created On : 01-Sep-2017 3:36:04 PM */
+/* Created On : 07-Sep-2017 10:06:30 AM */
/* DBMS : SQLite */
/* ---------------------------------------------------- */
@@ -63,13 +63,13 @@
DROP TABLE IF EXISTS 'GrassCoverErosionOutwardsFailureMechanismMetaEntity'
;
-DROP TABLE IF EXISTS 'SoilProfileEntity'
+DROP TABLE IF EXISTS 'PipingSoilProfileEntity'
;
-DROP TABLE IF EXISTS 'SoilLayerEntity'
+DROP TABLE IF EXISTS 'PipingSoilLayerEntity'
;
-DROP TABLE IF EXISTS 'StochasticSoilProfileEntity'
+DROP TABLE IF EXISTS 'PipingStochasticSoilProfileEntity'
;
DROP TABLE IF EXISTS 'StochasticSoilModelEntity'
@@ -78,7 +78,7 @@
DROP TABLE IF EXISTS 'SurfaceLineEntity'
;
-DROP TABLE IF EXISTS 'CharacteristicPointEntity'
+DROP TABLE IF EXISTS 'PipingCharacteristicPointEntity'
;
DROP TABLE IF EXISTS 'PipingCalculationOutputEntity'
@@ -520,7 +520,7 @@
'UseAssessmentLevelManualInput' TINYINT (1) NOT NULL, -- true or false
CONSTRAINT 'FK_PipingCalculationEntity_CalculationGroupEntity' FOREIGN KEY ('CalculationGroupEntityId') REFERENCES 'CalculationGroupEntity' ('CalculationGroupEntityId') ON DELETE Cascade ON UPDATE Cascade,
CONSTRAINT 'FK_PipingCalculationEntity_HydraulicLocationEntity' FOREIGN KEY ('HydraulicLocationEntityId') REFERENCES 'HydraulicLocationEntity' ('HydraulicLocationEntityId') ON DELETE Set Null ON UPDATE Cascade,
- CONSTRAINT 'FK_PipingCalculationEntity_StochasticSoilProfileEntity' FOREIGN KEY ('StochasticSoilProfileEntityId') REFERENCES 'StochasticSoilProfileEntity' ('StochasticSoilProfileEntityId') ON DELETE Set Null ON UPDATE Cascade,
+ CONSTRAINT 'FK_PipingCalculationEntity_StochasticSoilProfileEntity' FOREIGN KEY ('StochasticSoilProfileEntityId') REFERENCES 'PipingStochasticSoilProfileEntity' ('PipingStochasticSoilProfileEntityId') ON DELETE Set Null ON UPDATE Cascade,
CONSTRAINT 'FK_PipingCalculationEntity_SurfaceLineEntity' FOREIGN KEY ('SurfaceLineEntityId') REFERENCES 'SurfaceLineEntity' ('SurfaceLineEntityId') ON DELETE Set Null ON UPDATE Cascade
)
;
@@ -574,19 +574,19 @@
)
;
-CREATE TABLE 'SoilProfileEntity'
+CREATE TABLE 'PipingSoilProfileEntity'
(
- 'SoilProfileEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ 'PipingSoilProfileEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
'Bottom' REAL,
'Name' TEXT NOT NULL,
'SourceType' TINYINT (1) NOT NULL -- Enum: 1 = SoilProfile1D, 2 = SoilProfile2D
)
;
-CREATE TABLE 'SoilLayerEntity'
+CREATE TABLE 'PipingSoilLayerEntity'
(
- 'SoilLayerEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
- 'SoilProfileEntityId' INTEGER NOT NULL,
+ 'PipingSoilLayerEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ 'PipingSoilProfileEntityId' INTEGER NOT NULL,
'Top' REAL,
'IsAquifer' TINYINT (1) NOT NULL, -- true or false
'Color' INTEGER NOT NULL, -- ARGB value of Color.
@@ -599,19 +599,19 @@
'PermeabilityMean' REAL,
'PermeabilityCoefficientOfVariation' REAL,
'Order' INT (4) NOT NULL,
- CONSTRAINT 'FK_SoilLayerEntity_SoilProfileEntity' FOREIGN KEY ('SoilProfileEntityId') REFERENCES 'SoilProfileEntity' ('SoilProfileEntityId') ON DELETE Cascade ON UPDATE Cascade
+ CONSTRAINT 'FK_PipingSoilLayerEntity_SoilProfileEntity' FOREIGN KEY ('PipingSoilProfileEntityId') REFERENCES 'PipingSoilProfileEntity' ('PipingSoilProfileEntityId') ON DELETE Cascade ON UPDATE Cascade
)
;
-CREATE TABLE 'StochasticSoilProfileEntity'
+CREATE TABLE 'PipingStochasticSoilProfileEntity'
(
- 'StochasticSoilProfileEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
- 'SoilProfileEntityId' INTEGER NOT NULL,
+ 'PipingStochasticSoilProfileEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ 'PipingSoilProfileEntityId' INTEGER NOT NULL,
'StochasticSoilModelEntityId' INTEGER NOT NULL,
'Probability' REAL NOT NULL,
'Order' INT (4) NOT NULL,
- CONSTRAINT 'FK_StochasticSoilProfileEntity_SoilProfileEntity' FOREIGN KEY ('SoilProfileEntityId') REFERENCES 'SoilProfileEntity' ('SoilProfileEntityId') ON DELETE Cascade ON UPDATE Cascade,
- CONSTRAINT 'FK_StochasticSoilProfileEntity_StochasticSoilModelEntity' FOREIGN KEY ('StochasticSoilModelEntityId') REFERENCES 'StochasticSoilModelEntity' ('StochasticSoilModelEntityId') ON DELETE Cascade ON UPDATE Cascade
+ CONSTRAINT 'FK_PipingStochasticSoilProfileEntity_SoilProfileEntity' FOREIGN KEY ('PipingSoilProfileEntityId') REFERENCES 'PipingSoilProfileEntity' ('PipingSoilProfileEntityId') ON DELETE Cascade ON UPDATE Cascade,
+ CONSTRAINT 'FK_PipingStochasticSoilProfileEntity_StochasticSoilModelEntity' FOREIGN KEY ('StochasticSoilModelEntityId') REFERENCES 'StochasticSoilModelEntity' ('StochasticSoilModelEntityId') ON DELETE Cascade ON UPDATE Cascade
)
;
@@ -641,9 +641,9 @@
)
;
-CREATE TABLE 'CharacteristicPointEntity'
+CREATE TABLE 'PipingCharacteristicPointEntity'
(
- 'CharacteristicPointEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ 'PipingCharacteristicPointEntityId' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
'SurfaceLineEntityId' INTEGER NOT NULL,
'Type' TINYINT (1) NOT NULL, -- Enum: 1 = DikeToeAtRiver, 2 = DikeToeAtPolder, 3 = DitchDikeSide, 4 = BottomDitchDikeSide, 5 = BottomDitchPolderSide, 6 = DitchPolderSide
'X' REAL,
@@ -1745,12 +1745,12 @@
ON 'GrassCoverErosionOutwardsFailureMechanismMetaEntity' ('FailureMechanismEntityId' ASC)
;
-CREATE INDEX 'IXFK_StochasticSoilProfileEntity_SoilProfileEntity'
- ON 'StochasticSoilProfileEntity' ('SoilProfileEntityId' ASC)
+CREATE INDEX 'IXFK_PipingStochasticSoilProfileEntity_SoilProfileEntity'
+ ON 'PipingStochasticSoilProfileEntity' ('PipingSoilProfileEntityId' ASC)
;
-CREATE INDEX 'IXFK_StochasticSoilProfileEntity_StochasticSoilModelEntity'
- ON 'StochasticSoilProfileEntity' ('StochasticSoilModelEntityId' ASC)
+CREATE INDEX 'IXFK_PipingStochasticSoilProfileEntity_StochasticSoilModelEntity'
+ ON 'PipingStochasticSoilProfileEntity' ('StochasticSoilModelEntityId' ASC)
;
CREATE INDEX 'IXFK_StochasticSoilModelEntity_FailureMechanismEntity'
@@ -1762,7 +1762,7 @@
;
CREATE INDEX 'IXFK_SurfaceLinePointEntity_SurfaceLineEntity'
- ON 'CharacteristicPointEntity' ('SurfaceLineEntityId' ASC)
+ ON 'PipingCharacteristicPointEntity' ('SurfaceLineEntityId' ASC)
;
CREATE INDEX 'IXFK_PipingCalculationOutputEntity_PipingCalculationEntity'