コード例 #1
0
            public static EfTerm MapDomainToEntity(Term domain)
            {
                var entity = new EfTerm();

                entity.Id   = domain.Id;
                entity.Name = domain.Name;
                return(entity);
            }
コード例 #2
0
 public static Term MapEntityToDomainForOrganization(EfTerm entity, Organization organization)
 {
     return(new Term(entity.Id, organization, entity.Name, entity.StartDate, entity.EndDate));
 }
コード例 #3
0
 public static Term MapEntityToDomain(EfTerm entity)
 {
     return(new Term(entity.Id, null, entity.Name, entity.StartDate, entity.EndDate));
 }
コード例 #4
0
 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));
 }