private static bool?GetDefaultIsClustered( [NotNull] IIndex index, [NotNull] string tableName, [CanBeNull] string schema) { var sharedTableRootIndex = index.FindSharedTableRootIndex(tableName, schema); return(sharedTableRootIndex?.IsClustered(tableName, schema)); }
/// <summary> /// Returns the index filter expression. /// </summary> /// <param name="index"> The index. </param> /// <param name="tableName"> The table name. </param> /// <param name="schema"> The schema. </param> /// <returns> The index filter expression. </returns> public static string GetFilter([NotNull] this IIndex index, [NotNull] string tableName, [CanBeNull] string schema) { var annotation = index.FindAnnotation(RelationalAnnotationNames.Filter); if (annotation != null) { return((string)annotation.Value); } var sharedTableRootIndex = index.FindSharedTableRootIndex(tableName, schema); return(sharedTableRootIndex?.GetFilter(tableName, schema)); }