Share via


DbValidationError(String, String) Constructor

Definition

Creates an instance of DbValidationError.

public DbValidationError (string propertyName, string errorMessage);
new System.Data.Entity.Validation.DbValidationError : string * string -> System.Data.Entity.Validation.DbValidationError
Public Sub New (propertyName As String, errorMessage As String)

Parameters

propertyName
String

Name of the invalid property. Can be null.

errorMessage
String

Validation error message. Can be null.

Applies to