예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }