22 lines
650 B
C#
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;
|
|
}
|
|
}
|
|
}
|