ForeignKeyIndexConvention ForeignKeyIndexConvention Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public class ForeignKeyIndexConvention : IForeignKeyConvention, IForeignKeyRemovedConvention, IForeignKeyUniquenessConvention, IKeyConvention, IKeyRemovedConvention, IBaseTypeConvention, IIndexConvention, IIndexRemovedConvention, IIndexUniquenessConvention
Public Class ForeignKeyIndexConvention
    Implements IForeignKeyConvention, IForeignKeyRemovedConvention, IForeignKeyUniquenessConvention, IKeyConvention, IKeyRemovedConvention, IBaseTypeConvention, IIndexConvention, IIndexRemovedConvention, IIndexUniquenessConvention
Inheritance
System.ObjectSystem.Object
ForeignKeyIndexConventionForeignKeyIndexConvention
Implements

Methods

Apply(InternalEntityTypeBuilder, EntityType) Apply(InternalEntityTypeBuilder, EntityType)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual bool Apply(InternalEntityTypeBuilder entityTypeBuilder, EntityType oldBaseType)
Public Overridable Function Apply(entityTypeBuilder As InternalEntityTypeBuilder, oldBaseType As EntityType) As Boolean
Parameters
oldBaseType
EntityType EntityType
Returns
System.Boolean System.Boolean

Apply(InternalEntityTypeBuilder, ForeignKey) Apply(InternalEntityTypeBuilder, ForeignKey)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void Apply(InternalEntityTypeBuilder entityTypeBuilder, ForeignKey foreignKey)
Public Overridable Sub Apply(entityTypeBuilder As InternalEntityTypeBuilder, foreignKey As ForeignKey)
Parameters
foreignKey
ForeignKey ForeignKey

Apply(InternalEntityTypeBuilder, Index) Apply(InternalEntityTypeBuilder, Index)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void Apply(InternalEntityTypeBuilder entityTypeBuilder, Index index)
Public Overridable Sub Apply(entityTypeBuilder As InternalEntityTypeBuilder, index As Index)
Parameters
index
Index Index

Apply(InternalEntityTypeBuilder, Key) Apply(InternalEntityTypeBuilder, Key)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void Apply(InternalEntityTypeBuilder entityTypeBuilder, Key key)
Public Overridable Sub Apply(entityTypeBuilder As InternalEntityTypeBuilder, key As Key)
Parameters
key
Key Key

Apply(InternalIndexBuilder) Apply(InternalIndexBuilder)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalIndexBuilder Apply(InternalIndexBuilder indexBuilder)
Public Overridable Function Apply(indexBuilder As InternalIndexBuilder) As InternalIndexBuilder
Parameters
Returns

Apply(InternalKeyBuilder) Apply(InternalKeyBuilder)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalKeyBuilder Apply(InternalKeyBuilder keyBuilder)
Public Overridable Function Apply(keyBuilder As InternalKeyBuilder) As InternalKeyBuilder
Parameters
Returns

Apply(InternalRelationshipBuilder) Apply(InternalRelationshipBuilder)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalRelationshipBuilder Apply(InternalRelationshipBuilder relationshipBuilder)
Public Overridable Function Apply(relationshipBuilder As InternalRelationshipBuilder) As InternalRelationshipBuilder
Parameters
Returns

AreIndexedBy(IReadOnlyList, Boolean, IReadOnlyList, Boolean) AreIndexedBy(IReadOnlyList(Of Property), Boolean, IReadOnlyList(Of Property), Boolean)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected virtual bool AreIndexedBy(IReadOnlyList<Property> properties, bool unique, IReadOnlyList<Property> existingIndexProperties, bool existingIndexUniqueness)
Protected Overridable Function AreIndexedBy(properties As IReadOnlyList(Of  Property), unique As Boolean, existingIndexProperties As IReadOnlyList(Of  Property), existingIndexUniqueness As Boolean) As Boolean
Parameters
properties
System.Collections.Generic.IReadOnlyList<Property> System.Collections.Generic.IReadOnlyList(Of Property)
unique
System.Boolean System.Boolean
existingIndexProperties
System.Collections.Generic.IReadOnlyList<Property> System.Collections.Generic.IReadOnlyList(Of Property)
existingIndexUniqueness
System.Boolean System.Boolean
Returns
System.Boolean System.Boolean

CreateIndex(IReadOnlyList, Boolean, InternalEntityTypeBuilder) CreateIndex(IReadOnlyList(Of Property), Boolean, InternalEntityTypeBuilder)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

protected virtual Index CreateIndex(IReadOnlyList<Property> properties, bool unique, InternalEntityTypeBuilder entityTypeBuilder)
Protected Overridable Function CreateIndex(properties As IReadOnlyList(Of  Property), unique As Boolean, entityTypeBuilder As InternalEntityTypeBuilder) As Index
Parameters
properties
System.Collections.Generic.IReadOnlyList<Property> System.Collections.Generic.IReadOnlyList(Of Property)
unique
System.Boolean System.Boolean
Returns

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object

Explicit Interface Implementations

IForeignKeyUniquenessConvention.Apply(InternalRelationshipBuilder) Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IForeignKeyUniquenessConvention.Apply(InternalRelationshipBuilder)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

InternalRelationshipBuilder IForeignKeyUniquenessConvention.Apply(InternalRelationshipBuilder relationshipBuilder)
Function Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IForeignKeyUniquenessConvention.Apply(relationshipBuilder As InternalRelationshipBuilder) As InternalRelationshipBuilder Implements IForeignKeyUniquenessConvention.Apply
Parameters
Returns

IIndexUniquenessConvention.Apply(InternalIndexBuilder) Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IIndexUniquenessConvention.Apply(InternalIndexBuilder)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

bool IIndexUniquenessConvention.Apply(InternalIndexBuilder indexBuilder)
Function Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IIndexUniquenessConvention.Apply(indexBuilder As InternalIndexBuilder) As Boolean Implements IIndexUniquenessConvention.Apply
Parameters
Returns
System.Boolean System.Boolean