Exemplo n.º 1
0
        //TODO: DtoBuilder'ları yap.
        public IQueryable <Account> FromDto_Basic_Lookup()
        {
            Account    model = AccountBuilder.FromDatabaseWithChildren().Evict().Build();
            AccountDto sampleDto = mapper.Map <AccountDto>(model);
            IQueryable <AccountDto> dtoList = new List <AccountDto> {
                sampleDto
            }.AsQueryable();

            IQueryable <Account> result =
                from dto in dtoList
                select mapper.Map <Account>(dto);

            return(result);
        }