protected override void PopulateStoredProcedures(DbObjectCollection <StoredProcedure> storedProceduresCollection) { var procedures = this.Connection.GetSchema("Procedures", new string[] { null, this.connection.Database }); foreach (DataRow row in procedures.Rows) { var sp = new MySqlStoredProcedure(this, row); storedProceduresCollection.Add(sp); } }
protected override void PopulateStoredProcedures(DbObjectCollection <StoredProcedure> storedProceduresCollection) { var procedures = Connection.GetSchema("Procedures", new[] { null, Connection.Database, null, "PROCEDURE" }); foreach (DataRow row in procedures.Rows) { var name = (string)row["SPECIFIC_NAME"]; var sp = new MySqlStoredProcedure(this, name); storedProceduresCollection.Add(sp); } }