/// <summary> /// Adds an index to this entity. /// </summary> /// <param name="entityType"> The entity type to add the index to. </param> /// <param name="property"> The property to be indexed. </param> /// <param name="fromDataAnnotation"> Indicates whether the configuration was specified using a data annotation. </param> /// <returns> The newly created index. </returns> public static IConventionIndex AddIndex( [NotNull] this IConventionEntityType entityType, [NotNull] IConventionProperty property, bool fromDataAnnotation = false) { Check.NotNull(entityType, nameof(entityType)); return(entityType.AddIndex(new[] { property }, fromDataAnnotation)); }