Exemplo n.º 1
0
 protected override void SetRowUpdatingHandler(DbDataAdapter adapter)
 {
     if (!(adapter is SqliteDataAdapter))
     {
         throw new InvalidOperationException("Adapter needs to be a SqliteDataAdapter");
     }
     rowUpdatingHandler = new SqliteRowUpdatingEventHandler(RowUpdatingHandler);
     ((SqliteDataAdapter)adapter).RowUpdating += rowUpdatingHandler;
 }
Exemplo n.º 2
0
        override protected void OnRowUpdating(RowUpdatingEventArgs value)
        {
            SqliteRowUpdatingEventHandler handler = (SqliteRowUpdatingEventHandler)Events[_eventRowUpdating];

            if ((null != handler) && (value is SqliteRowUpdatingEventArgs))
            {
                handler(this, (SqliteRowUpdatingEventArgs)value);
            }
            base.OnRowUpdating(value);
        }
		protected override void SetRowUpdatingHandler (DbDataAdapter adapter)
                {
                        if (!(adapter is SqliteDataAdapter)) {
                                throw new InvalidOperationException ("Adapter needs to be a SqliteDataAdapter");
                        }
                        rowUpdatingHandler = new SqliteRowUpdatingEventHandler (RowUpdatingHandler);
                        ((SqliteDataAdapter) adapter).RowUpdating += rowUpdatingHandler;
                }