コード例 #1
0
 public TableDefinition GetDefinition(DatabaseObjectName tableName)
 {
     var factory = new TableDefinitionInterrogationStrategyFactory(connectionString);
     var strategy = factory.GetTableDefinitionInterrogationStrategy(TableDefinitionInterrogationStrategyType.SystemTables);
     return strategy.GetTableDefinition(tableName);
 }
コード例 #2
0
 private TableDefinition GetDefinition(DatabaseObjectName tableName, TableDefinitionInterrogationStrategyType strategyType)
 {
     var factory = new TableDefinitionInterrogationStrategyFactory(connectionString);
     var strategy = factory.GetTableDefinitionInterrogationStrategy(strategyType);
     return strategy.GetTableDefinition(tableName);
 }