ModelValidator.ValidateAmbiguousOneToOneRelationship Method
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.
Validates that a one-to-one relationship has an unambiguous principal end.
protected virtual void ValidateAmbiguousOneToOneRelationship(Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateAmbiguousOneToOneRelationship : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateAmbiguousOneToOneRelationship : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateAmbiguousOneToOneRelationship (foreignKey As IForeignKey, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))
Parameters
- foreignKey
- IForeignKey
The foreign key to validate.
The logger to use.