示例#1
0
 public static Core.Domain.ProductType MapFrom(EF.Persistance_Models.ProductType productType)
 {
     return(new Core.Domain.ProductType(productType.Id, productType.Name, productType.CategoryId,
                                        productType.ProductTypeAttributes.Select(pta => AttributeMapper.MapFrom(pta.Attribute)).ToList()));
 }
示例#2
0
 public static Core.Domain.Demand MapFrom(EF.Persistance_Models.Demand demand)
 {
     return(new Core.Domain.Demand(demand.Id, demand.BuyerId, demand.ProductTypeId, demand.Quantity,
                                   demand.DemandAttributeValues.Select(dav => AttributeMapper.MapFrom(dav)).ToList()));
 }