Files
BeWoPlaner/AICore/Context/EntryMapper/CustomerNavigationContextEntryMapper.cs
2025-07-25 14:27:57 +02:00

22 lines
707 B
C#

using System;
using System.Linq;
using AICore.Context.Entry;
using BeWo.Data.Entities;
namespace AICore.Context.EntryMapper
{
public class CustomerNavigationContextEntryMapper : BaseContextEntryMapper<Customer, CustomerNavigationContextEntry>
{
public override void MergeWithObject(Customer pObject, CustomerNavigationContextEntry pContext)
{
pContext.AddressString = "---";
pContext.CustomerAlias = pObject.CustomerAlias;
pContext.CustomerOid = pObject.Oid.Value;
pContext.DateOfBirth = pObject.Person.DateOfBirth;
pContext.EquityContribution = pObject.EquityContribution;
pContext.FullName = pObject.Person.FirstNameLastName;
pContext.InvoiceAddressString = "---";
}
}
}