3 ms·
You dont mix business logic and data like that. You name the fields currency and amount and have the business logic rejecting invalid pairs. You should use a
by Xss3 1y ago
You dont mix business logic and data like that.
You name the fields currency and amount and have the business logic rejecting invalid pairs.
You should use a currency type for the other issue, not an integer.
- Xss3 1y agoUpon reflection a proper strong currency amount type that has a strongly typed currency property as a requirement for existence makes sense.