DbEntityValidationResult Constructor
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.
Creates an instance of DbEntityValidationResult class.
public DbEntityValidationResult (System.Data.Entity.Infrastructure.DbEntityEntry entry, System.Collections.Generic.IEnumerable<System.Data.Entity.Validation.DbValidationError> validationErrors);
new System.Data.Entity.Validation.DbEntityValidationResult : System.Data.Entity.Infrastructure.DbEntityEntry * seq<System.Data.Entity.Validation.DbValidationError> -> System.Data.Entity.Validation.DbEntityValidationResult
Public Sub New (entry As DbEntityEntry, validationErrors As IEnumerable(Of DbValidationError))
Parameters
- entry
- DbEntityEntry
Entity entry the results applies to. Never null.
- validationErrors
- IEnumerable<DbValidationError>
List of DbValidationError instances. Never null. Can be empty meaning the entity is valid.
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