コード例 #1
0
        public static InMemoryDependent ToInMemoryDependent(this Dependent employee)
        {
            var inMemoryDependent = new InMemoryDependent
            {
                Id     = employee.Id,
                Person = employee.Person.ToInMemoryPerson()
            };

            return(inMemoryDependent);
        }
コード例 #2
0
        public static Dependent ToDependent(this InMemoryDependent inMemoryDependent)
        {
            var dependent = new Dependent(inMemoryDependent.Id, inMemoryDependent.Person.ToPerson());

            return(dependent);
        }