Share via


IndexAnnotation.IsCompatibleWith(Object) Method

Definition

Returns true if this annotation does not conflict with the given annotation such that the two can be combined together using the MergeWith(Object) method.

public virtual System.Data.Entity.Infrastructure.Annotations.CompatibilityResult IsCompatibleWith (object other);
abstract member IsCompatibleWith : obj -> System.Data.Entity.Infrastructure.Annotations.CompatibilityResult
override this.IsCompatibleWith : obj -> System.Data.Entity.Infrastructure.Annotations.CompatibilityResult
Public Overridable Function IsCompatibleWith (other As Object) As CompatibilityResult

Parameters

other
Object

The annotation to compare.

Returns

A CompatibilityResult indicating whether or not this annotation is compatible with the other.

Implements

Remarks

Each index annotation contains at most one IndexAttribute with a given name. Two annotations are considered compatible if each IndexAttribute with a given name is only contained in one annotation or the other, or if both annotations contain an IndexAttribute with the given name.

Applies to