Files
BeWoPlaner/Service/DCEntityMapper/CompactCustomerTeamDC_CustomerTeam.cs
2025-06-05 14:48:51 +02:00

31 lines
962 B
C#

using System;
using BeWo.Data.Entities;
using BS.Shared.DataContracts.Compact;
namespace BeWo.Service.DCEntityMapper
{
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;
}
}
}