diff Source/Mapping/MapNextResult.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Source/Mapping/MapNextResult.cs	Thu Mar 27 21:46:09 2014 +0400
@@ -0,0 +1,61 @@
+using System;
+
+namespace BLToolkit.Mapping
+{
+	public class MapNextResult
+	{
+		public MapNextResult(
+			Type     type,
+			MapIndex slaveIndex,
+			MapIndex masterIndex,
+			string   containerName,
+			params MapNextResult[] nextResults)
+		{
+			_objectType    = type;
+			_slaveIndex    = slaveIndex;
+			_masterIndex   = masterIndex;
+			_containerName = containerName;
+			_nextResults   = nextResults;
+		}
+
+		public MapNextResult(
+			Type   type,
+			string slaveIndex,
+			string masterIndex,
+			string containerName,
+			params MapNextResult[] nextResults)
+			: this(type, new MapIndex(slaveIndex), new MapIndex(masterIndex), containerName, nextResults)
+		{
+		}
+
+		private readonly Type _objectType;
+		internal         Type  ObjectType
+		{
+			get { return _objectType;  }
+		}
+
+		private readonly MapIndex _slaveIndex;
+		internal         MapIndex  SlaveIndex
+		{
+			get { return _slaveIndex;  }
+		}
+
+		private readonly MapIndex _masterIndex;
+		internal         MapIndex  MasterIndex
+		{
+			get { return _masterIndex;  }
+		}
+
+		private readonly string _containerName;
+		internal string          ContainerName
+		{
+			get { return _containerName;  }
+		}
+
+		private readonly MapNextResult[] _nextResults;
+		internal         MapNextResult[]  NextResults
+		{
+			get { return _nextResults; }
+		}
+	}
+}