IndexAnnotation.MergeWith Method (Object)
Merges this annotation with the given annotation and returns a new annotation containing the merged indexes.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- other
-
Type:
System.Object
The annotation to merge with this one.
Implements
IMergeableAnnotation.MergeWith(Object)Exception | Condition |
---|---|
InvalidOperationException | The other annotation contains indexes that are not compatible with indexes in this annotation. |
Each index annotation contains at most one IndexAttribute with a given name. The merged annotation will contain IndexAttributes from both this and the other annotation. If both annotations contain an IndexAttribute with the same name, then the merged annotation will contain one IndexAttribute with that name.