public GetDesignIssueWarnings ( Model database ) : List |
||
database | Model | |
리턴 | List |
public Database GetDatabaseMetaData() { Database database = null; if (SqlConnectionTester.TestConnectionString(this.sqlConnectionString, false).Success) { this.peta = new PetaPoco.Database(this.sqlConnectionString, "System.Data.SqlClient"); database = this.queryForDatabase(); var schemaInspector = new SchemaInspector(this.peta); database.Schemas = schemaInspector.GetSchemas(database); //TODO: add input parameter to control inspection for design issues DesignIssue.DatabaseDesignIssueInspector designIssueInspector = new DesignIssue.DatabaseDesignIssueInspector(); database.DesignIssueWarnings = designIssueInspector.GetDesignIssueWarnings(database); } return(database); }
public Database GetDatabaseMetaData() { Database database = null; if (SqlConnectionTester.TestConnectionString(this.sqlConnectionString, false).Success) { this.peta = new PetaPoco.Database(this.sqlConnectionString, "System.Data.SqlClient"); database = this.queryForDatabase(); var schemaInspector = new SchemaInspector(this.peta); database.Schemas = schemaInspector.GetSchemas(database); //TODO: add input parameter to control inspection for design issues DesignIssue.DatabaseDesignIssueInspector designIssueInspector = new DesignIssue.DatabaseDesignIssueInspector(); database.DesignIssueWarnings = designIssueInspector.GetDesignIssueWarnings(database); } return database; }