Комментарии:
I don't believe you need the condition for the ProductImageValidator - if the collection of ProductImages is empty, nothing will be executed anyway.
ОтветитьNice Video!!!
ОтветитьAwesome video.
ОтветитьI have an API, the validation message should be returned in several languages. In the Person class there is a property Language, how can I return the error messages in the right language (fr, en, de)?
Ответитьhello im still a beginner .. i dont understand why i should validate domain model when im going to use FluentValidation to validate the Dtos and if the validate success then im going to map it to domain models using automapper .. so am i wrong that there is no need to validate domain models?
ОтветитьI just notes that in the ProductValidator constructor you set a rule for product price which must be > 0 line 15
and then in the ValidatePrduct method you check for price <= 0 and throwing exception line 20.
Aren't those line equivalent or there is another purpose for that.
Thank you very much.
Excellent and smooth explanation.
Thank you very much.
What the point is using static constructor for Product class instead of regular? The no way to use validation in former?
ОтветитьThank you for the video .. can you make a video about crud with nested resources wired up to front end ?
ОтветитьIt would be intresting to me to see how you get the Rich Domain Objects from a Database eventually using EF. Should I use DTOS ?
ОтветитьThanks very much for this great videos. I like my validators out of the domain layer, I dont like to make the domain dependant on an external package. But then what is the best way to do it? Maybe that could be another video. Thanks again for the great content
Ответитьthanks, well explained
ОтветитьThank you for making more videos
ОтветитьThanks very much. Love to see more on this topic including how it is wired up to front end as well.
ОтветитьVery powerful video, well explained. My best compliment.
Ответить