Exemplo n.º 1
0
            public static EfTerm MapDomainToEntity(Term domain)
            {
                var entity = new EfTerm();

                entity.Id   = domain.Id;
                entity.Name = domain.Name;
                return(entity);
            }
Exemplo n.º 2
0
 public static Term MapEntityToDomainForOrganization(EfTerm entity, Organization organization)
 {
     return(new Term(entity.Id, organization, entity.Name, entity.StartDate, entity.EndDate));
 }
Exemplo n.º 3
0
 public static Term MapEntityToDomain(EfTerm entity)
 {
     return(new Term(entity.Id, null, entity.Name, entity.StartDate, entity.EndDate));
 }
 public static Term MapEntityToDomain(EfTerm entity)
 {
     // TODO: Figure out how to share mappings, like here for org
     return(new Term(entity.Id, null, entity.Name, entity.StartDate, entity.EndDate));
 }