Mercurial > pub > bltoolkit
comparison Source/Mapping/MapRelation.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
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 } |