public TableDefinition GetDefinition(DatabaseObjectName tableName) { var factory = new TableDefinitionInterrogationStrategyFactory(connectionString); var strategy = factory.GetTableDefinitionInterrogationStrategy(TableDefinitionInterrogationStrategyType.SystemTables); return strategy.GetTableDefinition(tableName); }
private TableDefinition GetDefinition(DatabaseObjectName tableName, TableDefinitionInterrogationStrategyType strategyType) { var factory = new TableDefinitionInterrogationStrategyFactory(connectionString); var strategy = factory.GetTableDefinitionInterrogationStrategy(strategyType); return strategy.GetTableDefinition(tableName); }