public List <DatabaseForeignKeys> GetDatabaseForeignKeys( [PexAssumeUnderTest] DatabaseSchemaAccessLayer target, string database ) { List <DatabaseForeignKeys> result = target.GetDatabaseForeignKeys(database); return(result); // TODO: add assertions to method DatabaseSchemaAccessLayerTest.GetDatabaseForeignKeys(DatabaseSchemaAccessLayer, String) }
/// <summary> /// Gets the database foreign keys. /// </summary> private void GetDatabaseForeignKeys() { DatabaseSchemaAccessLayer databaseInfo = new DatabaseSchemaAccessLayer(this.ConnectionParams); List <DatabaseForeignKeys> primaryKeys = databaseInfo.GetDatabaseForeignKeys(this.DatabaseName); int count = primaryKeys.Count; if (primaryKeys.Count > 0) { this.DataGridViewSchema.DataSource = primaryKeys; int dataGridViewWidth = this.DataGridViewSchema.Width; this.DataGridViewSchema.Columns[0].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft; this.DataGridViewSchema.Columns[1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft; this.DataGridViewSchema.Columns[2].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopLeft; } }