DbValidationError Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validation error. Can be either entity or property level validation error.
[System.Serializable]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbValidationError
[System.Serializable]
public class DbValidationError
type DbValidationError = class
Public Class DbValidationError
- Inheritance
-
DbValidationError
- Attributes
Constructors
DbValidationError(String, String) |
Creates an instance of DbValidationError. |
Properties
ErrorMessage |
Gets validation error message. |
PropertyName |
Gets name of the invalid property. |
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework