コード例 #1
0
        public static async Task <DbConstraint> GetPrimaryKeyConstraint(
            this IConstraintStore store,
            string tableName)
        {
            var constraints = await store.SelectConstraintsAsync();

            return(constraints.FirstOrDefault(c => c.TableName == tableName && c.ConstraintType == ConstraintTypes.PrimaryKey));
        }
コード例 #2
0
 public FullTextCatalogManager(
     IFullTextCatalogCommand <SchemaFullTextCatalog> fullTextCatalogCommand,
     IFullTextIndexCommand <SchemaFullTextIndex> fullTextIndexCommand,
     IFullTextIndexManager fullTextIndexManager,
     IShellSettings shellSettings,
     IFullTextIndexStore fullTextIndexStore,
     IConstraintStore constraintStore)
 {
     _fullTextCatalogCommand = fullTextCatalogCommand;
     _fullTextIndexCommand   = fullTextIndexCommand;
     _fullTextIndexManager   = fullTextIndexManager;
     _shellSettings          = shellSettings;
     _fullTextIndexStore     = fullTextIndexStore;
     _constraintStore        = constraintStore;
 }