❔ Initializing Entity Relationship Properties
How to initialize
User
and Blog
property? Thaaaaaaaanks. 😉6 Replies
Make those properties
required
and don't initialize themcool
what does this lead to ?
and where should I put it ?
is that fine?
ye
It won't allow you to initialize this object without those properties
Angius
REPL Result: Failure
Exception: CompilationErrorException
Compile: 464.230ms | Execution: 0.000ms | React with ❌ to remove this embed.
ok
buuuuuuut: ...
The required member "Post.User" must be set in the object initializer or attribute constructor.
!?!!??!
when I try to set it in
naaa?
ok, I finally figured it out! 😉 Thank you nevertheless!Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.