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
|
Rev | Line | |
---|
[925] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 |
|
---|
| 6 | namespace 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.