Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

[Question] Projections #37

Closed
nurlybekovnt opened this issue Nov 22, 2018 · 1 comment
Closed

[Question] Projections #37

nurlybekovnt opened this issue Nov 22, 2018 · 1 comment

Comments

@nurlybekovnt
Copy link

Hello, Jason.

First, thank you for this great sample app.

I have abstract class Animal and his children Cat, Dog, Lion. Cat, Dog, Lion are stored in database. So I created 3 dto's CatDto, DogDto, LionDto, and in them it has been implemented Expression<Func<Cat, CatDto>, and so on, as in your app. I want to create abstract class AnimalDto, and combine the common initialization of Cat, Dog, Lion, and use Projection of AnimalDto in CatDto, DogDto, and LionDto. How can it be done? Or it has another way to solve?

Thanks a lot!

@jasontaylordev
Copy link
Owner

A great question, but better to ask on Stack Overflow. Good luck!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants