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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -