Has anyone had issues getting server-side validation on an Entity Framework required field (property) to work? The data type is a string (nvarchar). Server-side validation for required fields of other data types WORK fine. Only string fields have issues.
I get the following error on UpdateModel(obj); of my POST method within the controller.
Exception Details: System.Data.ConstraintException: This property cannot be set to a null value.Source Error: Line 4500: OnTextChanging(value);Line 4501: ReportPropertyChanging("Text");Line 4502: _Text = StructuralObject.SetValidValue(value, false);Line 4503: ReportPropertyChanged("Text");Line 4504: OnTextChanged();
I've even tried data annotations like this but it seems to get ignored. [MetadataType(typeof(ObjMD))] public partial class Obj {
View Complete Post