IndexAnnotation.IsCompatibleWith(Object) 方法

定义

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

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,则两个批注被视为兼容。

适用于