EF parameterless constructor
I have a quick question: Is it a good practice to use a parameterless constructor that will be utilized by Entity Framework?
8 Replies
I don’t have any constructors on my models, they’re just property bags.
Same, just properties
required
if need belikewise
same
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
Okay, thanks for your help. For now, I have added parameterless constructors to my classes so that other constructors are not called unnecessarily.
"I don't have any constructors", "yeah, just properties", "same", "I have no constructors either", "yeah, they're unnecessary""Okay, got it, I'll add a parameterless constructor alongside all the other constructors I have" :KEKW:
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View