Share via


DbMemberEntry<TEntity,TProperty>.GetValidationErrors Method

Definition

Validates this property.

public System.Collections.Generic.ICollection<System.Data.Entity.Validation.DbValidationError> GetValidationErrors ();
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public System.Collections.Generic.ICollection<System.Data.Entity.Validation.DbValidationError> GetValidationErrors ();
member this.GetValidationErrors : unit -> System.Collections.Generic.ICollection<System.Data.Entity.Validation.DbValidationError>
Public Function GetValidationErrors () As ICollection(Of DbValidationError)

Returns

Collection of DbValidationError objects. Never null. If the entity is valid the collection will be empty.

Attributes

Applies to