DbValidationError Constructor (String, String)
Creates an instance of DbValidationError.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- propertyName
-
Type:
System.String
Name of the invalid property. Can be null.
- errorMessage
-
Type:
System.String
Validation error message. Can be null.