Files
BeWoPlaner/Service/DCEntityMapper/IDCEntityMapper.cs
2025-04-15 16:28:17 +02:00

23 lines
628 B
C#

using System;
using System.Collections.Generic;
using BeWo.Data.Entities;
namespace BeWo.Service.DCEntityMapper
{
public interface IDCEntityMapper<TEntity, TDC>
where TDC : new() where TEntity : BeWoEntityBase, new()
{
TDC MapToNewDC(TEntity pEntity);
List<TDC> MapToNewDCs(IEnumerable<TEntity> pEntitys);
List<TEntity> MapToNewEntities(IEnumerable<TDC> pDataContracts);
TEntity MapToNewEntity(TDC pDataContract);
TDC MergeWithDC(TEntity pEntity, TDC pDataContract);
TEntity MergeWithEntity(TDC pDataContract, TEntity pEntity);
}
}