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)); }
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; }