source:
trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/ContextFactory.cs
@
2913
Last change on this file since 2913 was 2904, checked in by kgrading, 15 years ago | |
---|---|
File size: 475 bytes |
Line | |
---|---|
1 | using System; |
2 | using System.Collections.Generic; |
3 | using System.Linq; |
4 | using System.Text; |
5 | |
6 | namespace 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 | } |
18 | } |
19 | } |
Note: See TracBrowser
for help on using the repository browser.