Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/ContextFactory.cs @ 3031

Last change on this file since 3031 was 3011, checked in by kgrading, 14 years ago

changed the complete DAL to LINQ 2 SQL (with the exception of the job streaming), did a lot of refactoring, Introduced DTOs (that are named DTOs for better understanding), added the spring.NET Interceptor, reintroduced transactions and cleaned up the whole JobResult thing and updated a part of the config merger (#830)

File size: 532 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace HeuristicLab.Hive.Server.LINQDataAccess {
7  public class ContextFactory {
8    [ThreadStatic]
9    private static HiveDataContext _hiveDataContext;
10
11    public static HiveDataContext Context {
12      get {
13        if(_hiveDataContext == null)
14          _hiveDataContext = new HiveDataContext();
15        return _hiveDataContext;       
16      }
17      set {
18        _hiveDataContext = value;
19      }
20    }
21  }
22}
Note: See TracBrowser for help on using the repository browser.