Index: Application/Ringtoets/src/Application.Ringtoets.Storage/StorageSqLite.cs
===================================================================
diff -u -rbcbae879035d5472efff973990ba1194e38b2ea5 -ra670da380b593fb1cec05bcb5df2da347eb8d384
--- Application/Ringtoets/src/Application.Ringtoets.Storage/StorageSqLite.cs (.../StorageSqLite.cs) (revision bcbae879035d5472efff973990ba1194e38b2ea5)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/StorageSqLite.cs (.../StorageSqLite.cs) (revision a670da380b593fb1cec05bcb5df2da347eb8d384)
@@ -23,6 +23,10 @@
/// Path to database file.
/// to save.
/// Returns the number of changes that were saved in .
+ /// Thrown when is null.
+ /// is invalid.
+ /// Thrown when the database does not contain the table version.
+ /// Thrown when was not created.
/// Thrown when
///
/// - Saving the to the database failed.
@@ -34,11 +38,9 @@
ConnectToNew(databaseFilePath);
using (var dbContext = new RingtoetsEntities(ConnectionString))
{
+ ProjectEntityConverter.InsertProjectEntity(dbContext.ProjectEntities, project);
try
{
- var projectEntity = new ProjectEntity();
- ProjectEntityConverter.ProjectToProjectEntity(project, projectEntity);
- dbContext.ProjectEntities.Add(projectEntity);
return dbContext.SaveChanges();
}
catch (DataException exception)