0
|
1 using System;
|
|
2
|
|
3 namespace BLToolkit.Mapping
|
|
4 {
|
|
5 public class MapRelation : MapRelationBase
|
|
6 {
|
|
7 public MapRelation(
|
|
8 MapResultSet slaveResultSet,
|
|
9 MapIndex slaveIndex,
|
|
10 MapIndex masterIndex,
|
|
11 string containerName)
|
|
12 : base(slaveResultSet.ObjectType, slaveIndex, masterIndex, containerName)
|
|
13 {
|
|
14 _slaveResultSet = slaveResultSet;
|
|
15 }
|
|
16
|
|
17 public MapRelation(MapResultSet slaveResultSet, MapRelationBase relation)
|
|
18 : this(slaveResultSet, relation.SlaveIndex, relation.MasterIndex, relation.ContainerName)
|
|
19 { }
|
|
20
|
|
21 private readonly MapResultSet _slaveResultSet;
|
|
22 public MapResultSet SlaveResultSet
|
|
23 {
|
|
24 get { return _slaveResultSet; }
|
|
25 }
|
|
26 }
|
|
27 }
|