Exemplo n.º 1
0
        public static ColumnIndex CreateColumnIndex(this ISystemContext context, string indexType,
                                                    ColumnIndexContext indexContext)
        {
            var factory = context.ResolveIndexFactory(indexType);

            if (factory == null)
            {
                throw new NotSupportedException(String.Format("None index factory for type '{0}' was configured in the system.", indexType));
            }

            return(factory.CreateIndex(indexContext));
        }