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

22 lines
650 B
C#

using System;
using System.Linq;
using AICore.Context.Entry;
using BeWo.Data.Entities;
namespace AICore.Context.EntryMapper
{
public class PersonNavigationContextEntryMapper : BaseContextEntryMapper<Person, PersonNavigationContextEntry>
{
public override void MergeWithObject(Person pObject, PersonNavigationContextEntry pContext)
{
pContext.AddressString = "---";
pContext.DateOfBirth = pObject.DateOfBirth;
//pContext.CustomerOid = "---";
//pContext.EmployeeOid = "---";
pContext.FullName = pObject.FirstNameLastName;
pContext.Geschlecht = pObject.Sex.ToString();
pContext.Function = pObject.Function.Value;
}
}
}