Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Update/ProjectUpdateExtensions.cs
===================================================================
diff -u -r5b3736b5350315a520f72c90222af261ea651019 -r1eed3e3f652618c52a462edc502cfd4250772314
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Update/ProjectUpdateExtensions.cs (.../ProjectUpdateExtensions.cs) (revision 5b3736b5350315a520f72c90222af261ea651019)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Update/ProjectUpdateExtensions.cs (.../ProjectUpdateExtensions.cs) (revision 1eed3e3f652618c52a462edc502cfd4250772314)
@@ -20,23 +20,21 @@
// All rights reserved.
using System;
-using System.Linq;
using Application.Ringtoets.Storage.Create;
using Application.Ringtoets.Storage.DbContext;
using Application.Ringtoets.Storage.Exceptions;
-using Core.Common.Base.Data;
using Ringtoets.Integration.Data;
namespace Application.Ringtoets.Storage.Update
{
///
- /// Extension methods for related to updating a .
+ /// Extension methods for related to updating a .
///
internal static class ProjectUpdateExtensions
{
///
/// Updates a in the database based on the information of the
- /// .
+ /// .
///
/// The project to update the database entity for.
/// The object keeping track of update operations.
@@ -48,7 +46,7 @@
///
/// When
/// does not have a corresponding entity in the database.
- internal static void Update(this Project project, PersistenceRegistry registry, IRingtoetsEntities context)
+ internal static void Update(this RingtoetsProject project, PersistenceRegistry registry, IRingtoetsEntities context)
{
if (context == null)
{
@@ -65,7 +63,7 @@
entity.Description = project.Description;
- foreach (var result in project.Items.OfType())
+ foreach (var result in project.Items)
{
if (result.IsNew())
{