语言

IndexAnnotation.IsCompatibleWith(Object) 方法

定义

如果此批注与给定批注不冲突,则返回 true,以便使用该方法将这两个批注组合在一起 MergeWith(Object) 。

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

参数

other
Object

要比较的批注。

返回

一个 CompatibilityResult,指示此批注是否与其他批注兼容。

实现

注解

每个索引批注最多包含一个 IndexAttribute 具有给定名称。 如果每个具有给定名称的 IndexAttribute 仅包含在一个批注或另一个批注中,或者这两个注释都包含具有给定名称的 IndexAttribute,则两个批注都被视为兼容。

适用于