Share via


DbEntityEntry.GetValidationResult Method

Definition

Validates this DbEntityEntry instance and returns validation result.

public System.Data.Entity.Validation.DbEntityValidationResult GetValidationResult ();
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public System.Data.Entity.Validation.DbEntityValidationResult GetValidationResult ();
member this.GetValidationResult : unit -> System.Data.Entity.Validation.DbEntityValidationResult
Public Function GetValidationResult () As DbEntityValidationResult

Returns

Entity validation result. Possibly null if DbContext.ValidateEntity(DbEntityEntry, IDictionary{object,object}) method is overridden.

Attributes

Applies to