To Exclude a Required Field from ModelState Validation, Even When It's Required in the Database , you should follow the below steps in details:
It's necessary to remove the property from the model :
It's advisable to assign a default value to this property , In the example below, I use an empty string "" for string property
model.ProperityName = ""
Most popular tags