The best-practice way to use a plausibility check
So, I have the following class
Is it okay to throw in the setter of the properties or is it somehow "better" to check this in the constructor?
Logically spoken, both values won't ever change, but may be "corrected" if inserted wrongly in the database.
Is it okay to throw in the setter of the properties or is it somehow "better" to check this in the constructor?
Logically spoken, both values won't ever change, but may be "corrected" if inserted wrongly in the database.