Files
BeWoPlaner/Service/DCEntityMapper/Compact/CompactCustomerTeamDC_CustomerTeam.cs
Rene Evertz 2c9323d1bc Light eingeführt
Ich bin schon groß und vier,
komm doch und spiel mit mir,
ich lad dich ein ich bin Caillou
2025-02-27 15:10:21 +01:00

31 lines
970 B
C#

using System;
using BeWo.Data.Entities;
using BS.Shared.DataContracts.Compact;
namespace BeWo.Service.DCEntityMapper.Compact
{
public class CompactCustomerTeamDC_CustomerTeam : AbstractIDCEntityMapper<CustomerTeam, CompactCustomerTeamDC>
{
public override CompactCustomerTeamDC MergeWithDC(CustomerTeam pEntity, CompactCustomerTeamDC pDataContract)
{
pDataContract.Name = pEntity.Name;
pDataContract.CustomerTeamOid = pEntity.Oid.Value;
pDataContract.CustomerTeamOid = pEntity.Version.Value;
return pDataContract;
}
public override CustomerTeam MergeWithEntity(CompactCustomerTeamDC pDataContract, CustomerTeam pEntity)
{
throw new NotImplementedException();
}
protected override bool AreDCAndEntityEqual(CompactCustomerTeamDC pDC, CustomerTeam pEntity)
{
return pDC.CustomerTeamOid == pEntity.Oid;
}
}
}