using System.Collections.Generic; using Application.Ringtoets.Storage.Converters; using Application.Ringtoets.Storage.DbContext; using Ringtoets.Common.Data; namespace Application.Ringtoets.Storage.Persistors { public class ReferenceLinePersistor { private readonly ReferenceLineConverter converter = new ReferenceLineConverter(); /// /// Updates a (new) entity based on the values of . /// /// The entity to update. /// The model to use to update the entity. public void UpdateModel(ICollection parentNavigationProperty, ReferenceLine model) { } /// /// Inserts a new entity based on the values of . /// /// The collection where the new entity is added. /// The model to use to update the entity. public void InsertModel(ICollection parentNavigationProperty, ReferenceLine model) { } /// /// Creates a new based on the information in . /// /// The database entity containing the information to set on the new model. /// A new with properties set from the database. public ReferenceLine LoadModel(ICollection entity) { return converter.ConvertEntityToModel(entity); } } }