Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/AssessmentSectionEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/AssessmentSectionEntity.cs (.../AssessmentSectionEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/AssessmentSectionEntity.cs (.../AssessmentSectionEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,20 @@ // //------------------------------------------------------------------------------ -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class AssessmentSectionEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public AssessmentSectionEntity() { FailureMechanismEntities = new HashSet(); HydraulicLocationEntities = new HashSet(); } - + public long AssessmentSectionEntityId { get; set; } public long ProjectEntityId { get; set; } public string Id { get; set; } @@ -53,13 +53,11 @@ public short Composition { get; set; } public string ReferenceLinePointXml { get; set; } public int Order { get; set; } - + public virtual ProjectEntity ProjectEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection FailureMechanismEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection HydraulicLocationEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/CalculationGroupEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/CalculationGroupEntity.cs (.../CalculationGroupEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/CalculationGroupEntity.cs (.../CalculationGroupEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,15 +28,14 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class CalculationGroupEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public CalculationGroupEntity() { CalculationGroupEntity1 = new HashSet(); @@ -50,42 +49,32 @@ StabilityStoneCoverWaveConditionsCalculationEntities = new HashSet(); WaveImpactAsphaltCoverWaveConditionsCalculationEntities = new HashSet(); } - + public long CalculationGroupEntityId { get; set; } public Nullable ParentCalculationGroupEntityId { get; set; } public string Name { get; set; } public int Order { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection CalculationGroupEntity1 { get; set; } - public virtual CalculationGroupEntity CalculationGroupEntity2 { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection ClosingStructuresCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection FailureMechanismEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionInwardsCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionOutwardsWaveConditionsCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection HeightStructuresCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection PipingCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityPointStructuresCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityStoneCoverWaveConditionsCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection WaveImpactAsphaltCoverWaveConditionsCalculationEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/CharacteristicPointEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/CharacteristicPointEntity.cs (.../CharacteristicPointEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/CharacteristicPointEntity.cs (.../CharacteristicPointEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,10 +28,11 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class CharacteristicPointEntity { public long CharacteristicPointEntityId { get; set; } @@ -40,7 +41,7 @@ public Nullable X { get; set; } public Nullable Y { get; set; } public Nullable Z { get; set; } - + public virtual SurfaceLineEntity SurfaceLineEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructureEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructureEntity.cs (.../ClosingStructureEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructureEntity.cs (.../ClosingStructureEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,19 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class ClosingStructureEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public ClosingStructureEntity() { ClosingStructuresCalculationEntities = new HashSet(); } - + public long ClosingStructureEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public int Order { get; set; } @@ -73,10 +72,9 @@ public int IdenticalApertures { get; set; } public Nullable FailureProbabilityReparation { get; set; } public byte InflowModelType { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection ClosingStructuresCalculationEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructureFailureMechanismMetaEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructureFailureMechanismMetaEntity.cs (.../ClosingStructureFailureMechanismMetaEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructureFailureMechanismMetaEntity.cs (.../ClosingStructureFailureMechanismMetaEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -30,12 +30,15 @@ namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class ClosingStructureFailureMechanismMetaEntity { public long ClosingStructureFailureMechanismMetaEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public int N2A { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructuresCalculationEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructuresCalculationEntity.cs (.../ClosingStructuresCalculationEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructuresCalculationEntity.cs (.../ClosingStructuresCalculationEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,21 +28,20 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class ClosingStructuresCalculationEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public ClosingStructuresCalculationEntity() { ClosingStructuresOutputEntities = new HashSet(); ClosingStructuresSectionResultEntities = new HashSet(); } - + public long ClosingStructuresCalculationEntityId { get; set; } public long CalculationGroupEntityId { get; set; } public Nullable ForeshoreProfileEntityId { get; set; } @@ -51,7 +50,18 @@ public int Order { get; set; } public string Name { get; set; } public string Comments { get; set; } + public byte UseBreakWater { get; set; } + public short BreakWaterType { get; set; } + public Nullable BreakWaterHeight { get; set; } + public byte UseForeshore { get; set; } public Nullable Orientation { get; set; } + public Nullable StructureNormalOrientation { get; set; } + public Nullable StorageStructureAreaMean { get; set; } + public Nullable StorageStructureAreaCoefficientOfVariation { get; set; } + public Nullable AllowedLevelIncreaseStorageMean { get; set; } + public Nullable AllowedLevelIncreaseStorageStandardDeviation { get; set; } + public Nullable WidthFlowAperturesMean { get; set; } + public Nullable WidthFlowAperturesCoefficientOfVariation { get; set; } public Nullable LevelCrestStructureNotClosingMean { get; set; } public Nullable LevelCrestStructureNotClosingStandardDeviation { get; set; } public Nullable InsideWaterLevelMean { get; set; } @@ -60,43 +70,29 @@ public Nullable ThresholdHeightOpenWeirStandardDeviation { get; set; } public Nullable AreaFlowAperturesMean { get; set; } public Nullable AreaFlowAperturesStandardDeviation { get; set; } + public Nullable CriticalOvertoppingDischargeMean { get; set; } + public Nullable CriticalOvertoppingDischargeCoefficientOfVariation { get; set; } + public Nullable FlowWidthAtBottomProtectionMean { get; set; } + public Nullable FlowWidthAtBottomProtectionStandardDeviation { get; set; } public double ProbabilityOpenStructureBeforeFlooding { get; set; } public double FailureProbabilityOpenStructure { get; set; } public int IdenticalApertures { get; set; } public double FailureProbabilityReparation { get; set; } public byte InflowModelType { get; set; } + public double FailureProbabilityStructureWithErosion { get; set; } public Nullable DeviationWaveDirection { get; set; } public Nullable DrainCoefficientMean { get; set; } + public Nullable ModelFactorSuperCriticalFlowMean { get; set; } + public Nullable StormDurationMean { get; set; } public Nullable FactorStormDurationOpenStructure { get; set; } - + public virtual CalculationGroupEntity CalculationGroupEntity { get; set; } public virtual ClosingStructureEntity ClosingStructureEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public virtual ICollection ClosingStructuresOutputEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public virtual ICollection ClosingStructuresSectionResultEntities { get; set; } - - public byte UseBreakWater { get; set; } - public short BreakWaterType { get; set; } - public Nullable BreakWaterHeight { get; set; } - public byte UseForeshore { get; set; } - public Nullable StructureNormalOrientation { get; set; } - public Nullable StorageStructureAreaMean { get; set; } - public Nullable StorageStructureAreaCoefficientOfVariation { get; set; } - public Nullable AllowedLevelIncreaseStorageMean { get; set; } - public Nullable AllowedLevelIncreaseStorageStandardDeviation { get; set; } - public Nullable WidthFlowAperturesMean { get; set; } - public Nullable WidthFlowAperturesCoefficientOfVariation { get; set; } - public Nullable CriticalOvertoppingDischargeMean { get; set; } - public Nullable CriticalOvertoppingDischargeCoefficientOfVariation { get; set; } - public Nullable FlowWidthAtBottomProtectionMean { get; set; } - public Nullable FlowWidthAtBottomProtectionStandardDeviation { get; set; } - public double FailureProbabilityStructureWithErosion { get; set; } - public Nullable ModelFactorSuperCriticalFlowMean { get; set; } - public Nullable StormDurationMean { get; set; } public virtual HydraulicLocationEntity HydraulicLocationEntity { get; set; } public virtual ForeshoreProfileEntity ForeshoreProfileEntity { get; set; } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection ClosingStructuresOutputEntities { get; set; } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection ClosingStructuresSectionResultEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructuresOutputEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructuresOutputEntity.cs (.../ClosingStructuresOutputEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructuresOutputEntity.cs (.../ClosingStructuresOutputEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,21 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class ClosingStructuresOutputEntity { public long ClosingStructuresOutputEntityId { get; set; } public long ClosingStructuresCalculationEntityId { get; set; } - - public virtual ClosingStructuresCalculationEntity ClosingStructuresCalculationEntity { get; set; } public Nullable RequiredProbability { get; set; } public Nullable RequiredReliability { get; set; } public Nullable Probability { get; set; } public Nullable Reliability { get; set; } public Nullable FactorOfSafety { get; set; } + + public virtual ClosingStructuresCalculationEntity ClosingStructuresCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructuresSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructuresSectionResultEntity.cs (.../ClosingStructuresSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ClosingStructuresSectionResultEntity.cs (.../ClosingStructuresSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,19 +28,20 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class ClosingStructuresSectionResultEntity { public long ClosingStructuresSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public Nullable ClosingStructuresCalculationEntityId { get; set; } public byte LayerOne { get; set; } public Nullable LayerThree { get; set; } - + public virtual ClosingStructuresCalculationEntity ClosingStructuresCalculationEntity { get; set; } public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DikeProfileEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DikeProfileEntity.cs (.../DikeProfileEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DikeProfileEntity.cs (.../DikeProfileEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,19 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class DikeProfileEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public DikeProfileEntity() { GrassCoverErosionInwardsCalculationEntities = new HashSet(); } - + public long DikeProfileEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public string Name { get; set; } @@ -55,10 +54,9 @@ public Nullable Y { get; set; } public Nullable X0 { get; set; } public int Order { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionInwardsCalculationEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DuneErosionSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DuneErosionSectionResultEntity.cs (.../DuneErosionSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/DuneErosionSectionResultEntity.cs (.../DuneErosionSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,18 +28,19 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class DuneErosionSectionResultEntity { public long DuneErosionSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public byte LayerTwoA { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/FailureMechanismEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/FailureMechanismEntity.cs (.../FailureMechanismEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/FailureMechanismEntity.cs (.../FailureMechanismEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,15 +28,14 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class FailureMechanismEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public FailureMechanismEntity() { ClosingStructureEntities = new HashSet(); @@ -55,60 +54,45 @@ StochasticSoilModelEntities = new HashSet(); SurfaceLineEntities = new HashSet(); } - + public long FailureMechanismEntityId { get; set; } public long AssessmentSectionEntityId { get; set; } public Nullable CalculationGroupEntityId { get; set; } public short FailureMechanismType { get; set; } public byte IsRelevant { get; set; } public string Comments { get; set; } - + public virtual AssessmentSectionEntity AssessmentSectionEntity { get; set; } public virtual CalculationGroupEntity CalculationGroupEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection ClosingStructureEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection ClosingStructureFailureMechanismMetaEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection DikeProfileEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection FailureMechanismSectionEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection ForeshoreProfileEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionInwardsFailureMechanismMetaEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionOutwardsFailureMechanismMetaEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionOutwardsHydraulicLocationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection HeightStructureEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection HeightStructuresFailureMechanismMetaEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection PipingFailureMechanismMetaEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityPointStructureEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityPointStructuresFailureMechanismMetaEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StochasticSoilModelEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection SurfaceLineEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/FailureMechanismSectionEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/FailureMechanismSectionEntity.cs (.../FailureMechanismSectionEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/FailureMechanismSectionEntity.cs (.../FailureMechanismSectionEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,14 +28,14 @@ // //------------------------------------------------------------------------------ -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class FailureMechanismSectionEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public FailureMechanismSectionEntity() { ClosingStructuresSectionResultEntities = new HashSet(); @@ -57,66 +57,48 @@ WaterPressureAsphaltCoverSectionResultEntities = new HashSet(); WaveImpactAsphaltCoverSectionResultEntities = new HashSet(); } - + public long FailureMechanismSectionEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public string Name { get; set; } public string FailureMechanismSectionPointXml { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection ClosingStructuresSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection DuneErosionSectionResultEntities { get; set; } - public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionInwardsSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionOutwardsSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverSlipOffInwardsSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverSlipOffOutwardsSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection HeightStructuresSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection MacrostabilityInwardsSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection MacrostabilityOutwardsSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection MicrostabilitySectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection PipingSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection PipingStructureSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityPointStructuresSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityStoneCoverSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StrengthStabilityLengthwiseConstructionSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection TechnicalInnovationSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection WaterPressureAsphaltCoverSectionResultEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection WaveImpactAsphaltCoverSectionResultEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ForeshoreProfileEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ForeshoreProfileEntity.cs (.../ForeshoreProfileEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ForeshoreProfileEntity.cs (.../ForeshoreProfileEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,15 +28,14 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class ForeshoreProfileEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public ForeshoreProfileEntity() { ClosingStructuresCalculationEntities = new HashSet(); @@ -46,7 +45,7 @@ StabilityStoneCoverWaveConditionsCalculationEntities = new HashSet(); WaveImpactAsphaltCoverWaveConditionsCalculationEntities = new HashSet(); } - + public long ForeshoreProfileEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public string Name { get; set; } @@ -58,25 +57,19 @@ public Nullable Y { get; set; } public Nullable X0 { get; set; } public int Order { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection ClosingStructuresCalculationEntities { get; set; } - public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionOutwardsWaveConditionsCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection HeightStructuresCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityPointStructuresCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityStoneCoverWaveConditionsCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection WaveImpactAsphaltCoverWaveConditionsCalculationEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsCalculationEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsCalculationEntity.cs (.../GrassCoverErosionInwardsCalculationEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsCalculationEntity.cs (.../GrassCoverErosionInwardsCalculationEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,21 +28,20 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class GrassCoverErosionInwardsCalculationEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public GrassCoverErosionInwardsCalculationEntity() { GrassCoverErosionInwardsOutputEntities = new HashSet(); GrassCoverErosionInwardsSectionResultEntities = new HashSet(); } - + public long GrassCoverErosionInwardsCalculationEntityId { get; set; } public long CalculationGroupEntityId { get; set; } public Nullable HydraulicLocationEntityId { get; set; } @@ -59,15 +58,13 @@ public short BreakWaterType { get; set; } public Nullable BreakWaterHeight { get; set; } public byte CalculateDikeHeight { get; set; } - + public virtual CalculationGroupEntity CalculationGroupEntity { get; set; } public virtual DikeProfileEntity DikeProfileEntity { get; set; } public virtual HydraulicLocationEntity HydraulicLocationEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionInwardsOutputEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionInwardsSectionResultEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsFailureMechanismMetaEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsFailureMechanismMetaEntity.cs (.../GrassCoverErosionInwardsFailureMechanismMetaEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsFailureMechanismMetaEntity.cs (.../GrassCoverErosionInwardsFailureMechanismMetaEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -30,12 +30,15 @@ namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class GrassCoverErosionInwardsFailureMechanismMetaEntity { public long GrassCoverErosionInwardsFailureMechanismMetaEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public int N { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsOutputEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsOutputEntity.cs (.../GrassCoverErosionInwardsOutputEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsOutputEntity.cs (.../GrassCoverErosionInwardsOutputEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,10 +28,11 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class GrassCoverErosionInwardsOutputEntity { public long GrassCoverErosionInwardsOutputEntityId { get; set; } @@ -46,7 +47,7 @@ public Nullable Probability { get; set; } public Nullable Reliability { get; set; } public Nullable FactorOfSafety { get; set; } - + public virtual GrassCoverErosionInwardsCalculationEntity GrassCoverErosionInwardsCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsSectionResultEntity.cs (.../GrassCoverErosionInwardsSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionInwardsSectionResultEntity.cs (.../GrassCoverErosionInwardsSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,19 +28,20 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class GrassCoverErosionInwardsSectionResultEntity { public long GrassCoverErosionInwardsSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public Nullable GrassCoverErosionInwardsCalculationEntityId { get; set; } public byte LayerOne { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } public virtual GrassCoverErosionInwardsCalculationEntity GrassCoverErosionInwardsCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsFailureMechanismMetaEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsFailureMechanismMetaEntity.cs (.../GrassCoverErosionOutwardsFailureMechanismMetaEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsFailureMechanismMetaEntity.cs (.../GrassCoverErosionOutwardsFailureMechanismMetaEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -30,12 +30,15 @@ namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class GrassCoverErosionOutwardsFailureMechanismMetaEntity { public long GrassCoverErosionOutwardsFailureMechanismMetaEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public int N { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsHydraulicLocationEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsHydraulicLocationEntity.cs (.../GrassCoverErosionOutwardsHydraulicLocationEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsHydraulicLocationEntity.cs (.../GrassCoverErosionOutwardsHydraulicLocationEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,19 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class GrassCoverErosionOutwardsHydraulicLocationEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public GrassCoverErosionOutwardsHydraulicLocationEntity() { GrassCoverErosionOutwardsWaveConditionsCalculationEntities = new HashSet(); } - + public long GrassCoverErosionOutwardsHydraulicLocationEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public long LocationId { get; set; } @@ -53,10 +52,9 @@ public byte DesignWaterLevelCalculationConvergence { get; set; } public byte WaveHeightCalculationConvergence { get; set; } public int Order { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionOutwardsWaveConditionsCalculationEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsSectionResultEntity.cs (.../GrassCoverErosionOutwardsSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsSectionResultEntity.cs (.../GrassCoverErosionOutwardsSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,18 +28,19 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class GrassCoverErosionOutwardsSectionResultEntity { public long GrassCoverErosionOutwardsSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public byte LayerTwoA { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsWaveConditionsCalculationEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsWaveConditionsCalculationEntity.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsWaveConditionsCalculationEntity.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,19 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class GrassCoverErosionOutwardsWaveConditionsCalculationEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public GrassCoverErosionOutwardsWaveConditionsCalculationEntity() { GrassCoverErosionOutwardsWaveConditionsOutputEntities = new HashSet(); } - + public long GrassCoverErosionOutwardsWaveConditionsCalculationEntityId { get; set; } public long CalculationGroupEntityId { get; set; } public Nullable ForeshoreProfileEntityId { get; set; } @@ -59,12 +58,11 @@ public Nullable UpperBoundaryWaterLevels { get; set; } public Nullable LowerBoundaryWaterLevels { get; set; } public byte StepSize { get; set; } - + public virtual CalculationGroupEntity CalculationGroupEntity { get; set; } public virtual ForeshoreProfileEntity ForeshoreProfileEntity { get; set; } public virtual GrassCoverErosionOutwardsHydraulicLocationEntity GrassCoverErosionOutwardsHydraulicLocationEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionOutwardsWaveConditionsOutputEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsWaveConditionsOutputEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsWaveConditionsOutputEntity.cs (.../GrassCoverErosionOutwardsWaveConditionsOutputEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverErosionOutwardsWaveConditionsOutputEntity.cs (.../GrassCoverErosionOutwardsWaveConditionsOutputEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,10 +28,11 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class GrassCoverErosionOutwardsWaveConditionsOutputEntity { public long GrassCoverErosionOutwardsWaveConditionsOutputEntityId { get; set; } @@ -41,7 +42,7 @@ public Nullable WaveHeight { get; set; } public Nullable WavePeakPeriod { get; set; } public Nullable WaveAngle { get; set; } - + public virtual GrassCoverErosionOutwardsWaveConditionsCalculationEntity GrassCoverErosionOutwardsWaveConditionsCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffInwardsSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffInwardsSectionResultEntity.cs (.../GrassCoverSlipOffInwardsSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffInwardsSectionResultEntity.cs (.../GrassCoverSlipOffInwardsSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,18 +28,19 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class GrassCoverSlipOffInwardsSectionResultEntity { public long GrassCoverSlipOffInwardsSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public byte LayerTwoA { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffOutwardsSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffOutwardsSectionResultEntity.cs (.../GrassCoverSlipOffOutwardsSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/GrassCoverSlipOffOutwardsSectionResultEntity.cs (.../GrassCoverSlipOffOutwardsSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,18 +28,19 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class GrassCoverSlipOffOutwardsSectionResultEntity { public long GrassCoverSlipOffOutwardsSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public byte LayerTwoA { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructureEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructureEntity.cs (.../HeightStructureEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructureEntity.cs (.../HeightStructureEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,19 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class HeightStructureEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public HeightStructureEntity() { HeightStructuresCalculationEntities = new HashSet(); } - + public long HeightStructureEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public int Order { get; set; } @@ -63,10 +62,9 @@ public Nullable StorageStructureAreaCoefficientOfVariation { get; set; } public Nullable AllowedLevelIncreaseStorageMean { get; set; } public Nullable AllowedLevelIncreaseStorageStandardDeviation { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection HeightStructuresCalculationEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresCalculationEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresCalculationEntity.cs (.../HeightStructuresCalculationEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresCalculationEntity.cs (.../HeightStructuresCalculationEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,21 +28,20 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class HeightStructuresCalculationEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public HeightStructuresCalculationEntity() { HeightStructuresOutputEntities = new HashSet(); HeightStructuresSectionResultEntities = new HashSet(); } - + public long HeightStructuresCalculationEntityId { get; set; } public long CalculationGroupEntityId { get; set; } public Nullable HydraulicLocationEntityId { get; set; } @@ -51,19 +50,6 @@ public int Order { get; set; } public string Name { get; set; } public string Comments { get; set; } - public Nullable LevelCrestStructureMean { get; set; } - public Nullable LevelCrestStructureStandardDeviation { get; set; } - public Nullable DeviationWaveDirection { get; set; } - - public virtual CalculationGroupEntity CalculationGroupEntity { get; set; } - public virtual HeightStructureEntity HeightStructureEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public virtual ICollection HeightStructuresOutputEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] - public virtual ICollection HeightStructuresSectionResultEntities { get; set; } - public Nullable ModelFactorSuperCriticalFlowMean { get; set; } public Nullable StructureNormalOrientation { get; set; } public Nullable AllowedLevelIncreaseStorageMean { get; set; } @@ -78,11 +64,21 @@ public Nullable WidthFlowAperturesMean { get; set; } public Nullable WidthFlowAperturesCoefficientOfVariation { get; set; } public Nullable StormDurationMean { get; set; } + public Nullable LevelCrestStructureMean { get; set; } + public Nullable LevelCrestStructureStandardDeviation { get; set; } + public Nullable DeviationWaveDirection { get; set; } public byte UseBreakWater { get; set; } public byte UseForeshore { get; set; } public short BreakWaterType { get; set; } public Nullable BreakWaterHeight { get; set; } + + public virtual CalculationGroupEntity CalculationGroupEntity { get; set; } public virtual ForeshoreProfileEntity ForeshoreProfileEntity { get; set; } + public virtual HeightStructureEntity HeightStructureEntity { get; set; } public virtual HydraulicLocationEntity HydraulicLocationEntity { get; set; } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection HeightStructuresOutputEntities { get; set; } + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + public virtual ICollection HeightStructuresSectionResultEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresFailureMechanismMetaEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresFailureMechanismMetaEntity.cs (.../HeightStructuresFailureMechanismMetaEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresFailureMechanismMetaEntity.cs (.../HeightStructuresFailureMechanismMetaEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -30,12 +30,15 @@ namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class HeightStructuresFailureMechanismMetaEntity { public long HeightStructuresFailureMechanismMetaEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public int N { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresOutputEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresOutputEntity.cs (.../HeightStructuresOutputEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresOutputEntity.cs (.../HeightStructuresOutputEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,21 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class HeightStructuresOutputEntity { public long HeightStructuresOutputEntityId { get; set; } public long HeightStructuresCalculationEntityId { get; set; } - - public virtual HeightStructuresCalculationEntity HeightStructuresCalculationEntity { get; set; } public Nullable RequiredProbability { get; set; } public Nullable RequiredReliability { get; set; } public Nullable Probability { get; set; } public Nullable Reliability { get; set; } public Nullable FactorOfSafety { get; set; } + + public virtual HeightStructuresCalculationEntity HeightStructuresCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresSectionResultEntity.cs (.../HeightStructuresSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HeightStructuresSectionResultEntity.cs (.../HeightStructuresSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,19 +28,20 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class HeightStructuresSectionResultEntity { public long HeightStructuresSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public Nullable HeightStructuresCalculationEntityId { get; set; } public byte LayerOne { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } public virtual HeightStructuresCalculationEntity HeightStructuresCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HydraulicLocationEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HydraulicLocationEntity.cs (.../HydraulicLocationEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/HydraulicLocationEntity.cs (.../HydraulicLocationEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,15 +28,14 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class HydraulicLocationEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public HydraulicLocationEntity() { ClosingStructuresCalculationEntities = new HashSet(); @@ -47,7 +46,7 @@ StabilityStoneCoverWaveConditionsCalculationEntities = new HashSet(); WaveImpactAsphaltCoverWaveConditionsCalculationEntities = new HashSet(); } - + public long HydraulicLocationEntityId { get; set; } public long AssessmentSectionEntityId { get; set; } public long LocationId { get; set; } @@ -59,28 +58,21 @@ public int Order { get; set; } public byte DesignWaterLevelCalculationConvergence { get; set; } public byte WaveHeightCalculationConvergence { get; set; } - + public virtual AssessmentSectionEntity AssessmentSectionEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection ClosingStructuresCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection GrassCoverErosionInwardsCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection HeightStructuresCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection PipingCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityPointStructuresCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityStoneCoverWaveConditionsCalculationEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection WaveImpactAsphaltCoverWaveConditionsCalculationEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityInwardsSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityInwardsSectionResultEntity.cs (.../MacrostabilityInwardsSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityInwardsSectionResultEntity.cs (.../MacrostabilityInwardsSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,18 +28,19 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class MacrostabilityInwardsSectionResultEntity { public long MacrostabilityInwardsSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public Nullable LayerTwoA { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityOutwardsSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityOutwardsSectionResultEntity.cs (.../MacrostabilityOutwardsSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MacrostabilityOutwardsSectionResultEntity.cs (.../MacrostabilityOutwardsSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,18 +28,19 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class MacrostabilityOutwardsSectionResultEntity { public long MacrostabilityOutwardsSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public Nullable LayerTwoA { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MicrostabilitySectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MicrostabilitySectionResultEntity.cs (.../MicrostabilitySectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/MicrostabilitySectionResultEntity.cs (.../MicrostabilitySectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,18 +28,19 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class MicrostabilitySectionResultEntity { public long MicrostabilitySectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public byte LayerTwoA { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationEntity.cs (.../PipingCalculationEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationEntity.cs (.../PipingCalculationEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,21 +28,20 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class PipingCalculationEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public PipingCalculationEntity() { PipingCalculationOutputEntities = new HashSet(); PipingSemiProbabilisticOutputEntities = new HashSet(); } - + public long PipingCalculationEntityId { get; set; } public long CalculationGroupEntityId { get; set; } public Nullable SurfaceLineEntityId { get; set; } @@ -59,16 +58,14 @@ public Nullable DampingFactorExitStandardDeviation { get; set; } public byte RelevantForScenario { get; set; } public Nullable ScenarioContribution { get; set; } - + public virtual CalculationGroupEntity CalculationGroupEntity { get; set; } public virtual HydraulicLocationEntity HydraulicLocationEntity { get; set; } public virtual SurfaceLineEntity SurfaceLineEntity { get; set; } public virtual StochasticSoilProfileEntity StochasticSoilProfileEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection PipingCalculationOutputEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection PipingSemiProbabilisticOutputEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationOutputEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationOutputEntity.cs (.../PipingCalculationOutputEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingCalculationOutputEntity.cs (.../PipingCalculationOutputEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,10 +28,11 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class PipingCalculationOutputEntity { public long PipingCalculationOutputEntityId { get; set; } @@ -43,7 +44,7 @@ public Nullable UpliftZValue { get; set; } public Nullable SellmeijerFactorOfSafety { get; set; } public Nullable SellmeijerZValue { get; set; } - + public virtual PipingCalculationEntity PipingCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingFailureMechanismMetaEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingFailureMechanismMetaEntity.cs (.../PipingFailureMechanismMetaEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingFailureMechanismMetaEntity.cs (.../PipingFailureMechanismMetaEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -30,12 +30,15 @@ namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class PipingFailureMechanismMetaEntity { public long PipingFailureMechanismMetaEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public double A { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSectionResultEntity.cs (.../PipingSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSectionResultEntity.cs (.../PipingSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,17 +28,18 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class PipingSectionResultEntity { public long PipingSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSemiProbabilisticOutputEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSemiProbabilisticOutputEntity.cs (.../PipingSemiProbabilisticOutputEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingSemiProbabilisticOutputEntity.cs (.../PipingSemiProbabilisticOutputEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,10 +28,11 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class PipingSemiProbabilisticOutputEntity { public long PipingSemiProbabilisticOutputEntityId { get; set; } @@ -51,7 +52,7 @@ public Nullable PipingProbability { get; set; } public Nullable PipingReliability { get; set; } public Nullable PipingFactorOfSafety { get; set; } - + public virtual PipingCalculationEntity PipingCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingStructureSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingStructureSectionResultEntity.cs (.../PipingStructureSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/PipingStructureSectionResultEntity.cs (.../PipingStructureSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,18 +28,19 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class PipingStructureSectionResultEntity { public long PipingStructureSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public byte LayerTwoA { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ProjectEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ProjectEntity.cs (.../ProjectEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/ProjectEntity.cs (.../ProjectEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,23 +28,23 @@ // //------------------------------------------------------------------------------ -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class ProjectEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public ProjectEntity() { AssessmentSectionEntities = new HashSet(); } - + public long ProjectEntityId { get; set; } public string Description { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection AssessmentSectionEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.cs (.../RingtoetsEntities.Context.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.cs (.../RingtoetsEntities.Context.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -35,9 +35,6 @@ { public partial class RingtoetsEntities : System.Data.Entity.DbContext { - public RingtoetsEntities() - : base("name=RingtoetsEntities") {} - public virtual DbSet AssessmentSectionEntities { get; set; } public virtual DbSet CalculationGroupEntities { get; set; } public virtual DbSet CharacteristicPointEntities { get; set; } @@ -98,7 +95,7 @@ public virtual DbSet WaveImpactAsphaltCoverSectionResultEntities { get; set; } public virtual DbSet WaveImpactAsphaltCoverWaveConditionsCalculationEntities { get; set; } public virtual DbSet WaveImpactAsphaltCoverWaveConditionsOutputEntities { get; set; } - + /// /// This method is called in a 'code first' approach when the model for a derived has been initialized, /// but before the model has been locked down and used to initialize the . Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.tt =================================================================== diff -u -r1ab694fe2d416435524ceca426d459caac4af304 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.tt (.../RingtoetsEntities.Context.tt) (revision 1ab694fe2d416435524ceca426d459caac4af304) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.Context.tt (.../RingtoetsEntities.Context.tt) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -48,20 +48,6 @@ // //------------------------------------------------------------------------------ -<# - -var codeNamespace = code.VsNamespaceSuggestion(); -if (!String.IsNullOrEmpty(codeNamespace)) -{ -#> -namespace <#=code.EscapeNamespace(codeNamespace)#> -{ -<# - PushIndent(" "); -} - -#> -using System; using System.Data.Entity; using System.Data.Entity.Infrastructure; <# @@ -74,34 +60,34 @@ } #> -<#=Accessibility.ForType(container)#> partial class <#=code.Escape(container)#> : DbContext -{ - public <#=code.Escape(container)#>() - : base("name=<#=container.Name#>") - { <# -if (!loader.IsLazyLoadingEnabled(container)) +var codeNamespace = code.VsNamespaceSuggestion(); +if (!String.IsNullOrEmpty(codeNamespace)) { #> - this.Configuration.LazyLoadingEnabled = false; +namespace <#=code.EscapeNamespace(codeNamespace)#> +{ <# + PushIndent(" "); } - -foreach (var entitySet in container.BaseEntitySets.OfType()) +#> +<#=Accessibility.ForType(container)#> partial class <#=code.Escape(container)#> : System.Data.Entity.DbContext { - // Note: the DbSet members are defined below such that the getter and - // setter always have the same accessibility as the DbSet definition - if (Accessibility.ForReadOnlyProperty(entitySet) != "public") +<# + foreach (var entitySet in container.BaseEntitySets.OfType()) { #> - <#=codeStringGenerator.DbSetInitializer(entitySet)#> + <#=codeStringGenerator.DbSet(entitySet)#> <# } -} -#> + + foreach (var edmFunction in container.FunctionImports) + { + WriteFunctionImport(typeMapper, codeStringGenerator, edmFunction, modelNamespace, includeMergeOption: false); } +#> - /// + /// /// This method is called in a 'code first' approach when the model for a derived has been initialized, /// but before the model has been locked down and used to initialize the . /// @@ -111,30 +97,15 @@ { throw new UnintentionalCodeFirstException(); } - -<# - foreach (var entitySet in container.BaseEntitySets.OfType()) - { -#> - <#=codeStringGenerator.DbSet(entitySet)#> -<# - } - - foreach (var edmFunction in container.FunctionImports) - { - WriteFunctionImport(typeMapper, codeStringGenerator, edmFunction, modelNamespace, includeMergeOption: false); - } -#> } <# if (!String.IsNullOrEmpty(codeNamespace)) { PopIndent(); #> +}<# } -<# -} #> <#+ Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.tt =================================================================== diff -u -rc50bbb508171b9879c1bcffc412309da4810b38d -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.tt (.../RingtoetsEntities.tt) (revision c50bbb508171b9879c1bcffc412309da4810b38d) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/RingtoetsEntities.tt (.../RingtoetsEntities.tt) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -41,21 +41,21 @@ foreach (var edmProperty in propertiesWithDefaultValues) { #> - this.<#=code.Escape(edmProperty)#> = <#=typeMapper.CreateLiteral(edmProperty.DefaultValue)#>; + <#=code.Escape(edmProperty)#> = <#=typeMapper.CreateLiteral(edmProperty.DefaultValue)#>; <# } foreach (var navigationProperty in collectionNavigationProperties) { #> - this.<#=code.Escape(navigationProperty)#> = new HashSet<<#=typeMapper.GetTypeName(navigationProperty.ToEndMember.GetEntityType())#>>(); + <#=code.Escape(navigationProperty)#> = new HashSet<<#=typeMapper.GetTypeName(navigationProperty.ToEndMember.GetEntityType())#>>(); <# } foreach (var complexProperty in complexProperties) { #> - this.<#=code.Escape(complexProperty)#> = new <#=typeMapper.GetTypeName(complexProperty.TypeUsage)#>(); + <#=code.Escape(complexProperty)#> = new <#=typeMapper.GetTypeName(complexProperty.TypeUsage)#>(); <# } #> Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SoilLayerEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SoilLayerEntity.cs (.../SoilLayerEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SoilLayerEntity.cs (.../SoilLayerEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,10 +28,11 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class SoilLayerEntity { public long SoilLayerEntityId { get; set; } @@ -48,7 +49,7 @@ public Nullable PermeabilityMean { get; set; } public Nullable PermeabilityDeviation { get; set; } public int Order { get; set; } - + public virtual SoilProfileEntity SoilProfileEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SoilProfileEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SoilProfileEntity.cs (.../SoilProfileEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SoilProfileEntity.cs (.../SoilProfileEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,29 +28,27 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class SoilProfileEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public SoilProfileEntity() { SoilLayerEntities = new HashSet(); StochasticSoilProfileEntities = new HashSet(); } - + public long SoilProfileEntityId { get; set; } public Nullable Bottom { get; set; } public string Name { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection SoilLayerEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StochasticSoilProfileEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructureEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructureEntity.cs (.../StabilityPointStructureEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructureEntity.cs (.../StabilityPointStructureEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,19 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class StabilityPointStructureEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public StabilityPointStructureEntity() { StabilityPointStructuresCalculationEntities = new HashSet(); } - + public long StabilityPointStructureEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public int Order { get; set; } @@ -94,10 +93,9 @@ public Nullable AreaFlowAperturesMean { get; set; } public Nullable AreaFlowAperturesStandardDeviation { get; set; } public byte InflowModelType { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityPointStructuresCalculationEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresCalculationEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresCalculationEntity.cs (.../StabilityPointStructuresCalculationEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresCalculationEntity.cs (.../StabilityPointStructuresCalculationEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,21 +28,20 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class StabilityPointStructuresCalculationEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public StabilityPointStructuresCalculationEntity() { StabilityPointStructuresOutputEntities = new HashSet(); StabilityPointStructuresSectionResultEntities = new HashSet(); } - + public long StabilityPointStructuresCalculationEntityId { get; set; } public long CalculationGroupEntityId { get; set; } public Nullable ForeshoreProfileEntityId { get; set; } @@ -51,10 +50,25 @@ public int Order { get; set; } public string Name { get; set; } public string Comments { get; set; } + public byte UseBreakWater { get; set; } + public short BreakWaterType { get; set; } + public Nullable BreakWaterHeight { get; set; } + public byte UseForeshore { get; set; } + public Nullable StructureNormalOrientation { get; set; } + public Nullable StorageStructureAreaMean { get; set; } + public Nullable StorageStructureAreaCoefficientOfVariation { get; set; } + public Nullable AllowedLevelIncreaseStorageMean { get; set; } + public Nullable AllowedLevelIncreaseStorageStandardDeviation { get; set; } + public Nullable WidthFlowAperturesMean { get; set; } + public Nullable WidthFlowAperturesCoefficientOfVariation { get; set; } public Nullable InsideWaterLevelMean { get; set; } public Nullable InsideWaterLevelStandardDeviation { get; set; } public Nullable ThresholdHeightOpenWeirMean { get; set; } public Nullable ThresholdHeightOpenWeirStandardDeviation { get; set; } + public Nullable CriticalOvertoppingDischargeMean { get; set; } + public Nullable CriticalOvertoppingDischargeCoefficientOfVariation { get; set; } + public Nullable FlowWidthAtBottomProtectionMean { get; set; } + public Nullable FlowWidthAtBottomProtectionStandardDeviation { get; set; } public Nullable ConstructiveStrengthLinearLoadModelMean { get; set; } public Nullable ConstructiveStrengthLinearLoadModelCoefficientOfVariation { get; set; } public Nullable ConstructiveStrengthQuadraticLoadModelMean { get; set; } @@ -87,37 +101,19 @@ public byte InflowModelType { get; set; } public byte LoadSchematizationType { get; set; } public Nullable VolumicWeightWater { get; set; } + public Nullable StormDurationMean { get; set; } + public Nullable ModelFactorSuperCriticalFlowMean { get; set; } public Nullable FactorStormDurationOpenStructure { get; set; } public Nullable DrainCoefficientMean { get; set; } - + public double FailureProbabilityStructureWithErosion { get; set; } + public virtual CalculationGroupEntity CalculationGroupEntity { get; set; } + public virtual ForeshoreProfileEntity ForeshoreProfileEntity { get; set; } + public virtual HydraulicLocationEntity HydraulicLocationEntity { get; set; } public virtual StabilityPointStructureEntity StabilityPointStructureEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityPointStructuresOutputEntities { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityPointStructuresSectionResultEntities { get; set; } - - public byte UseBreakWater { get; set; } - public short BreakWaterType { get; set; } - public Nullable BreakWaterHeight { get; set; } - public byte UseForeshore { get; set; } - public Nullable StructureNormalOrientation { get; set; } - public Nullable StorageStructureAreaMean { get; set; } - public Nullable StorageStructureAreaCoefficientOfVariation { get; set; } - public Nullable AllowedLevelIncreaseStorageMean { get; set; } - public Nullable AllowedLevelIncreaseStorageStandardDeviation { get; set; } - public Nullable WidthFlowAperturesMean { get; set; } - public Nullable WidthFlowAperturesCoefficientOfVariation { get; set; } - public Nullable CriticalOvertoppingDischargeMean { get; set; } - public Nullable CriticalOvertoppingDischargeCoefficientOfVariation { get; set; } - public Nullable FlowWidthAtBottomProtectionMean { get; set; } - public Nullable FlowWidthAtBottomProtectionStandardDeviation { get; set; } - public Nullable StormDurationMean { get; set; } - public Nullable ModelFactorSuperCriticalFlowMean { get; set; } - public double FailureProbabilityStructureWithErosion { get; set; } - public virtual ForeshoreProfileEntity ForeshoreProfileEntity { get; set; } - public virtual HydraulicLocationEntity HydraulicLocationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresFailureMechanismMetaEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresFailureMechanismMetaEntity.cs (.../StabilityPointStructuresFailureMechanismMetaEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresFailureMechanismMetaEntity.cs (.../StabilityPointStructuresFailureMechanismMetaEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -30,12 +30,15 @@ namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class StabilityPointStructuresFailureMechanismMetaEntity { public long StrengthStabilityPointConstructionFailureMechanismMetaEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public int N { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresOutputEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresOutputEntity.cs (.../StabilityPointStructuresOutputEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresOutputEntity.cs (.../StabilityPointStructuresOutputEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,21 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class StabilityPointStructuresOutputEntity { public long StabilityPointStructuresOutputEntity1 { get; set; } public long StabilityPointStructuresCalculationEntityId { get; set; } - - public virtual StabilityPointStructuresCalculationEntity StabilityPointStructuresCalculationEntity { get; set; } public Nullable RequiredProbability { get; set; } public Nullable RequiredReliability { get; set; } public Nullable Probability { get; set; } public Nullable Reliability { get; set; } public Nullable FactorOfSafety { get; set; } + + public virtual StabilityPointStructuresCalculationEntity StabilityPointStructuresCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresSectionResultEntity.cs (.../StabilityPointStructuresSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityPointStructuresSectionResultEntity.cs (.../StabilityPointStructuresSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,19 +28,20 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class StabilityPointStructuresSectionResultEntity { public long StabilityPointStructuresSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public Nullable StabilityPointStructuresCalculationEntityId { get; set; } public byte LayerOne { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } public virtual StabilityPointStructuresCalculationEntity StabilityPointStructuresCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverSectionResultEntity.cs (.../StabilityStoneCoverSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverSectionResultEntity.cs (.../StabilityStoneCoverSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,18 +28,19 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class StabilityStoneCoverSectionResultEntity { public long StabilityStoneCoverSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public byte LayerTwoA { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverWaveConditionsCalculationEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverWaveConditionsCalculationEntity.cs (.../StabilityStoneCoverWaveConditionsCalculationEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverWaveConditionsCalculationEntity.cs (.../StabilityStoneCoverWaveConditionsCalculationEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,19 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class StabilityStoneCoverWaveConditionsCalculationEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public StabilityStoneCoverWaveConditionsCalculationEntity() { StabilityStoneCoverWaveConditionsOutputEntities = new HashSet(); } - + public long StabilityStoneCoverWaveConditionsCalculationEntityId { get; set; } public long CalculationGroupEntityId { get; set; } public Nullable ForeshoreProfileEntityId { get; set; } @@ -59,12 +58,11 @@ public Nullable UpperBoundaryWaterLevels { get; set; } public Nullable LowerBoundaryWaterLevels { get; set; } public byte StepSize { get; set; } - + public virtual CalculationGroupEntity CalculationGroupEntity { get; set; } public virtual ForeshoreProfileEntity ForeshoreProfileEntity { get; set; } public virtual HydraulicLocationEntity HydraulicLocationEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StabilityStoneCoverWaveConditionsOutputEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverWaveConditionsOutputEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverWaveConditionsOutputEntity.cs (.../StabilityStoneCoverWaveConditionsOutputEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StabilityStoneCoverWaveConditionsOutputEntity.cs (.../StabilityStoneCoverWaveConditionsOutputEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,10 +28,11 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class StabilityStoneCoverWaveConditionsOutputEntity { public long StabilityStoneCoverWaveConditionsOutputEntityId { get; set; } @@ -42,7 +43,7 @@ public Nullable WaveHeight { get; set; } public Nullable WavePeakPeriod { get; set; } public Nullable WaveAngle { get; set; } - + public virtual StabilityStoneCoverWaveConditionsCalculationEntity StabilityStoneCoverWaveConditionsCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilModelEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilModelEntity.cs (.../StochasticSoilModelEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilModelEntity.cs (.../StochasticSoilModelEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,29 +28,28 @@ // //------------------------------------------------------------------------------ -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class StochasticSoilModelEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public StochasticSoilModelEntity() { StochasticSoilProfileEntities = new HashSet(); } - + public long StochasticSoilModelEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public string Name { get; set; } public string SegmentName { get; set; } public string StochasticSoilModelSegmentPointXml { get; set; } public int Order { get; set; } - + public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection StochasticSoilProfileEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilProfileEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilProfileEntity.cs (.../StochasticSoilProfileEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StochasticSoilProfileEntity.cs (.../StochasticSoilProfileEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,30 +28,28 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class StochasticSoilProfileEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public StochasticSoilProfileEntity() { PipingCalculationEntities = new HashSet(); } - + public long StochasticSoilProfileEntityId { get; set; } public long SoilProfileEntityId { get; set; } public long StochasticSoilModelEntityId { get; set; } public Nullable Probability { get; set; } public int Order { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection PipingCalculationEntities { get; set; } - public virtual SoilProfileEntity SoilProfileEntity { get; set; } public virtual StochasticSoilModelEntity StochasticSoilModelEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StrengthStabilityLengthwiseConstructionSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StrengthStabilityLengthwiseConstructionSectionResultEntity.cs (.../StrengthStabilityLengthwiseConstructionSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/StrengthStabilityLengthwiseConstructionSectionResultEntity.cs (.../StrengthStabilityLengthwiseConstructionSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,17 +28,18 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class StrengthStabilityLengthwiseConstructionSectionResultEntity { public long StrengthStabilityLengthwiseConstructionSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SurfaceLineEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SurfaceLineEntity.cs (.../SurfaceLineEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/SurfaceLineEntity.cs (.../SurfaceLineEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,35 +28,32 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class SurfaceLineEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public SurfaceLineEntity() { CharacteristicPointEntities = new HashSet(); PipingCalculationEntities = new HashSet(); } - + public long SurfaceLineEntityId { get; set; } public long FailureMechanismEntityId { get; set; } public string Name { get; set; } public Nullable ReferenceLineIntersectionX { get; set; } public Nullable ReferenceLineIntersectionY { get; set; } public string PointsXml { get; set; } public int Order { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection CharacteristicPointEntities { get; set; } - public virtual FailureMechanismEntity FailureMechanismEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection PipingCalculationEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/TechnicalInnovationSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/TechnicalInnovationSectionResultEntity.cs (.../TechnicalInnovationSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/TechnicalInnovationSectionResultEntity.cs (.../TechnicalInnovationSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,17 +28,18 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class TechnicalInnovationSectionResultEntity { public long TechnicalInnovationSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/VersionEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/VersionEntity.cs (.../VersionEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/VersionEntity.cs (.../VersionEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,15 +28,16 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class VersionEntity { public long VersionId { get; set; } public long Version { get; set; } - public DateTime Timestamp { get; set; } + public System.DateTime Timestamp { get; set; } public byte[] FingerPrint { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaterPressureAsphaltCoverSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaterPressureAsphaltCoverSectionResultEntity.cs (.../WaterPressureAsphaltCoverSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaterPressureAsphaltCoverSectionResultEntity.cs (.../WaterPressureAsphaltCoverSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,17 +28,18 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class WaterPressureAsphaltCoverSectionResultEntity { public long WaterPressureAsphaltCoverSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverSectionResultEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverSectionResultEntity.cs (.../WaveImpactAsphaltCoverSectionResultEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverSectionResultEntity.cs (.../WaveImpactAsphaltCoverSectionResultEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,18 +28,19 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class WaveImpactAsphaltCoverSectionResultEntity { public long WaveImpactAsphaltCoverSectionResultEntityId { get; set; } public long FailureMechanismSectionEntityId { get; set; } public byte LayerOne { get; set; } public Nullable LayerTwoA { get; set; } public Nullable LayerThree { get; set; } - + public virtual FailureMechanismSectionEntity FailureMechanismSectionEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverWaveConditionsCalculationEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverWaveConditionsCalculationEntity.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverWaveConditionsCalculationEntity.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,20 +28,19 @@ // //------------------------------------------------------------------------------ -using System; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class WaveImpactAsphaltCoverWaveConditionsCalculationEntity { - [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public WaveImpactAsphaltCoverWaveConditionsCalculationEntity() { WaveImpactAsphaltCoverWaveConditionsOutputEntities = new HashSet(); } - + public long WaveImpactAsphaltCoverWaveConditionsCalculationEntityId { get; set; } public long CalculationGroupEntityId { get; set; } public Nullable ForeshoreProfileEntityId { get; set; } @@ -59,12 +58,11 @@ public Nullable UpperBoundaryWaterLevels { get; set; } public Nullable LowerBoundaryWaterLevels { get; set; } public byte StepSize { get; set; } - + public virtual CalculationGroupEntity CalculationGroupEntity { get; set; } public virtual ForeshoreProfileEntity ForeshoreProfileEntity { get; set; } public virtual HydraulicLocationEntity HydraulicLocationEntity { get; set; } - - [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection WaveImpactAsphaltCoverWaveConditionsOutputEntities { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverWaveConditionsOutputEntity.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverWaveConditionsOutputEntity.cs (.../WaveImpactAsphaltCoverWaveConditionsOutputEntity.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/DbContext/WaveImpactAsphaltCoverWaveConditionsOutputEntity.cs (.../WaveImpactAsphaltCoverWaveConditionsOutputEntity.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -28,10 +28,11 @@ // //------------------------------------------------------------------------------ -using System; - namespace Application.Ringtoets.Storage.DbContext { + using System; + using System.Collections.Generic; + public partial class WaveImpactAsphaltCoverWaveConditionsOutputEntity { public long WaveImpactAsphaltCoverWaveConditionsOutputEntityId { get; set; } @@ -41,7 +42,7 @@ public Nullable WaveHeight { get; set; } public Nullable WavePeakPeriod { get; set; } public Nullable WaveAngle { get; set; } - + public virtual WaveImpactAsphaltCoverWaveConditionsCalculationEntity WaveImpactAsphaltCoverWaveConditionsCalculationEntity { get; set; } } -} \ No newline at end of file +} Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj =================================================================== diff -u -r2d5e2d09b0cb1a7f48e1b0a067d332347c89d4a8 -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj (.../Application.Ringtoets.Storage.Test.csproj) (revision 2d5e2d09b0cb1a7f48e1b0a067d332347c89d4a8) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Application.Ringtoets.Storage.Test.csproj (.../Application.Ringtoets.Storage.Test.csproj) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -92,6 +92,7 @@ + Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/DbContext/RingtoetsEntitiesTest.cs =================================================================== diff -u --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/DbContext/RingtoetsEntitiesTest.cs (revision 0) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/DbContext/RingtoetsEntitiesTest.cs (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -0,0 +1,87 @@ +// Copyright (C) Stichting Deltares 2016. 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.Data.Entity.Infrastructure; +using System.Globalization; +using Application.Ringtoets.Storage.DbContext; +using NUnit.Framework; + +namespace Application.Ringtoets.Storage.Test.DbContext +{ + [TestFixture] + public class RingtoetsEntitiesTest + { + private const string entityConnectionString = "metadata=res://*/DbContext.RingtoetsEntities.csdl|" + + "res://*/DbContext.RingtoetsEntities.ssdl|" + + "res://*/DbContext.RingtoetsEntities.msl;" + + "provider=System.Data.SQLite.EF6;" + + "provider connection string=\"{0}\""; + + private const string connectionString = "failifmissing=True;data source=C:\\file.sqlite;" + + "read only=False;" + + "foreign keys=True;" + + "version=3;" + + "pooling=False"; + + [Test] + public void Constructor_WithConnectionString_ExpectedValues() + { + // Setup + string fullConnectionString = string.Format(CultureInfo.CurrentCulture, entityConnectionString, + connectionString); + + // Call + using (var ringtoetsEntities = new RingtoetsEntities(fullConnectionString)) + { + // Assert + Assert.IsInstanceOf(ringtoetsEntities); + Assert.AreEqual(connectionString, ringtoetsEntities.Database.Connection.ConnectionString); + } + } + + [Test] + public void OnModelCreating_Always_ThrowsUnintentionalCodeFirstException() + { + // Setup + string fullConnectionString = string.Format(CultureInfo.CurrentCulture, entityConnectionString, + connectionString); + + // Call + using (var ringtoetsEntities = new TestRingtoetsEntities(fullConnectionString)) + { + TestDelegate test = () => ringtoetsEntities.CallOnModelCreating(); + + // Assert + Assert.Throws(test); + } + } + + private class TestRingtoetsEntities : RingtoetsEntities + { + public TestRingtoetsEntities(string connString) : base(connString) {} + + public void CallOnModelCreating() + { + OnModelCreating(null); + } + } + } +} \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationServiceTest.cs =================================================================== diff -u -r2743056fbaf6cccf5e87f00396c4c32030424ddc -rd6acfb0dbc88df1eabcad6580dc614004dbfb456 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationServiceTest.cs (.../GrassCoverErosionInwardsCalculationServiceTest.cs) (revision 2743056fbaf6cccf5e87f00396c4c32030424ddc) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Service.Test/GrassCoverErosionInwardsCalculationServiceTest.cs (.../GrassCoverErosionInwardsCalculationServiceTest.cs) (revision d6acfb0dbc88df1eabcad6580dc614004dbfb456) @@ -1084,7 +1084,7 @@ failureMechanism.Contribution, validFile); } - catch (HydraRingFileParserException e) + catch (HydraRingFileParserException) { exceptionThrown = true; }