Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/DataAdapterBase.cs @ 954

Last change on this file since 954 was 925, checked in by svonolfe, 16 years ago

Added caching, thread safety to DataAccess layer (#372)

File size: 482 bytes
RevLine 
[925]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace HeuristicLab.Hive.Server.ADODataAccess {
7  abstract class DataAdapterBase {
8    protected abstract void Update();
9
10    protected DataAdapterBase() {
11      ServiceLocator.GetTransactionManager().OnUpdate +=
12        new EventHandler(DataAdapterBase_OnUpdate);
13    }
14
15    void DataAdapterBase_OnUpdate(object sender, EventArgs e) {
16      this.Update();
17    }
18  }
19}
Note: See TracBrowser for help on using the repository browser.