예제 #1
0
        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);
        }
예제 #2
0
        protected override Customer ReadCustomer()
        {
            Customer customer = CustomerBuilder.FromDatabaseWithChildren().Build();

            return(customer);
        }