Files
BeWoPlaner/Service/DCEntityMapper/IDCEntityMapper.cs
2016-06-27 01:45:38 +02:00

22 lines
616 B
C#

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);
}
}