Last change
on this file since 3075 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:
515 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 abstract class BaseDao<TBusiness, TDatabaseEntity> {
|
---|
8 | public static HiveDataContext Context {
|
---|
9 | get {
|
---|
10 | return ContextFactory.Context;
|
---|
11 | }
|
---|
12 | }
|
---|
13 |
|
---|
14 | public abstract TDatabaseEntity DtoToEntity(TBusiness source, TDatabaseEntity target);
|
---|
15 | public abstract TBusiness EntityToDto(TDatabaseEntity source, TBusiness target);
|
---|
16 |
|
---|
17 | }
|
---|
18 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.