comparison Source/Mapping/MapNextResult.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 MapNextResult
6 {
7 public MapNextResult(
8 Type type,
9 MapIndex slaveIndex,
10 MapIndex masterIndex,
11 string containerName,
12 params MapNextResult[] nextResults)
13 {
14 _objectType = type;
15 _slaveIndex = slaveIndex;
16 _masterIndex = masterIndex;
17 _containerName = containerName;
18 _nextResults = nextResults;
19 }
20
21 public MapNextResult(
22 Type type,
23 string slaveIndex,
24 string masterIndex,
25 string containerName,
26 params MapNextResult[] nextResults)
27 : this(type, new MapIndex(slaveIndex), new MapIndex(masterIndex), containerName, nextResults)
28 {
29 }
30
31 private readonly Type _objectType;
32 internal Type ObjectType
33 {
34 get { return _objectType; }
35 }
36
37 private readonly MapIndex _slaveIndex;
38 internal MapIndex SlaveIndex
39 {
40 get { return _slaveIndex; }
41 }
42
43 private readonly MapIndex _masterIndex;
44 internal MapIndex MasterIndex
45 {
46 get { return _masterIndex; }
47 }
48
49 private readonly string _containerName;
50 internal string ContainerName
51 {
52 get { return _containerName; }
53 }
54
55 private readonly MapNextResult[] _nextResults;
56 internal MapNextResult[] NextResults
57 {
58 get { return _nextResults; }
59 }
60 }
61 }