IndexAnnotation.IsCompatibleWith Method (Object)

 

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

Namespace:   System.Data.Entity.Infrastructure.Annotations
Assembly:  EntityFramework (in EntityFramework.dll)

public virtual CompatibilityResult IsCompatibleWith(
	object other
)

Parameters

other
Type: System.Object

The annotation to compare.

Return Value

Type: System.Data.Entity.Infrastructure.Annotations.CompatibilityResult

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

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.