I have Field named Title.
Then How to set MinLength is 10 and MaxLength 50 using fluent api?
I have Field named Title.
Then How to set MinLength is 10 and MaxLength 50 using fluent api?
You can't validate with fluent api. It's just for database modeling. You need to use Data Annotations or Fluent Validation. I recommend you to use Fluent Validation with Form Helper to validate your models.