public IQueryable <Customer> FromDto_Complex() { Customer model = CustomerBuilder.FromDatabaseWithChildren().Evict().Build(); CustomerComplexDto sampleDto = mapper.Map <CustomerComplexDto>(model); IQueryable <CustomerComplexDto> dtoList = new List <CustomerComplexDto> { sampleDto }.AsQueryable(); IQueryable <Customer> result = from dto in dtoList select mapper.Map <Customer>(dto); return(result); }
protected override Customer ReadCustomer() { Customer customer = CustomerBuilder.FromDatabaseWithChildren().Build(); return(customer); }