# Conflicts: # BeWo/BeWo.csproj # Data/Data.csproj # Host/Multitenancy/demo.config # Shared/BeWoEntityEnums.cs # Shared/Shared.csproj
31 lines
962 B
C#
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;
|
|
}
|
|
}
|
|
}
|