22 lines
707 B
C#
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 = "---";
|
|
}
|
|
}
|
|
}
|