protected override void PopulateTriggers(IList <Trigger> triggersCollection) { using (this.Database.CreateConnectionScope()) { var triggers = this.Connection.GetSchema("Triggers", new string[] { null, this.Connection.Database, this.Name, null }); foreach (DataRow row in triggers.Rows) { var trigger = new MySqlTrigger(this, row); triggersCollection.Add(trigger); } } }
protected override void PopulateTriggers(IList <Trigger> triggersCollection) { using (Database.CreateConnectionScope()) { var triggers = Connection.GetSchema("Triggers", new[] { null, Connection.Database, Name }); foreach (DataRow row in triggers.Rows) { var trigger = new MySqlTrigger(this, (string)row["TRIGGER_NAME"]); triggersCollection.Add(trigger); } } }