RequiredAttribute used both for validation and for mapping determination. If you define a string property without this attribute, it is defined as a null column in the database, but with this attribute it does not have a nullabe value. In other words, he says that if a property can contain null both during validation and in the database.
source share