Пример #1
0
 public static Instructor MapEntityToDomain(EfInstructor entity)
 {
     // TODO: Figure out how to share mappings, like here for org
     return(new Instructor(entity.Id,
                           null,
                           entity.GivenName, entity.SurName));
 }
Пример #2
0
 public static Instructor MapEntityToDomainForOrganization(EfInstructor entity, Organization organization)
 {
     // TODO: Figure out how to share mappings, like here for org
     return(new Instructor(entity.Id,
                           organization,
                           entity.GivenName, entity.SurName));
 }
Пример #3
0
            public static EfInstructor MapDomainToEntity(Instructor domain)
            {
                var entity = new EfInstructor();

                entity.Id        = domain.Id;
                entity.GivenName = domain.GivenName;
                entity.SurName   = domain.SurName;
                return(entity);
            }