c# - EF: Restriction on data types mapping -


Is it possible to edit the data type error message on EF?

For example, I have to show 'end-user' that the value entered in the field of the id must be an integer value .

  Public Ent ID {get; Set; }   

Thanks a lot!

You can use the regular expression to validate the comment only

  [regular expression (@ "^ \ d + $", error message = "field of id should be entered value value")] Public Intent {get; Set; }   

enter image details here

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -