Exemplo n.º 1
0
        /// <summary>
        ///     Returns the index filter expression.
        /// </summary>
        /// <param name="index"> The index. </param>
        /// <param name="storeObject"> The identifier of the containing store object. </param>
        /// <returns> The index filter expression. </returns>
        public static string GetFilter([NotNull] this IIndex index, StoreObjectIdentifier storeObject)
        {
            var annotation = index.FindAnnotation(RelationalAnnotationNames.Filter);

            if (annotation != null)
            {
                return((string)annotation.Value);
            }

            var sharedTableRootIndex = index.FindSharedObjectRootIndex(storeObject);

            return(sharedTableRootIndex?.GetFilter(storeObject));
        }
Exemplo n.º 2
0
        private static bool?GetDefaultIsClustered([NotNull] IIndex index, StoreObjectIdentifier storeObject)
        {
            var sharedTableRootIndex = index.FindSharedObjectRootIndex(storeObject);

            return(sharedTableRootIndex?.IsClustered(storeObject));
        }