AutoExpand properties ONLY when returning one entity #718
Unanswered
Angelinsky7
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
i would like to
autoexpand
some property only when asking directly for one entity.Imagine i've got this entity
with this controller
Now i would like to
autoexpand
theEntityDto.Address
field ONLY whenGetEntity
is called and let the user choose if we want to expand it when callingGetEntities
, how can i do this easily ?(for information, in the
GetEntity
implementation when i call the DB i already get myAddress
field and usingautomapper
i already transform it inAddressDto
, the only issue i have is when odata transfrom my dto into json it removes theAddress
field automatically)Thanks for all the support !
Beta Was this translation helpful? Give feedback.
All reactions