changeset 1:8f65451dc28f

Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author cin
date Fri, 28 Mar 2014 01:04:56 +0400
parents f990fcb411a9
children 79a04c6442bf
files Source/Data/Linq/Builder/TableBuilder.cs Source/Reflection/InitContext.cs
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Source/Data/Linq/Builder/TableBuilder.cs	Thu Mar 27 21:46:09 2014 +0400
+++ b/Source/Data/Linq/Builder/TableBuilder.cs	Fri Mar 28 01:04:56 2014 +0400
@@ -353,7 +353,8 @@
 					MappingSchema = data.MappingSchema,
 					DataSource    = source,
 					SourceObject  = dataReader,
-					ObjectMapper  = data.ObjectMapper
+					ObjectMapper  = data.ObjectMapper,
+                    MappingIndex  = data.Index
 				};
 
 				var destObject = data.ObjectMapper.CreateInstance(initContext);
--- a/Source/Reflection/InitContext.cs	Thu Mar 27 21:46:09 2014 +0400
+++ b/Source/Reflection/InitContext.cs	Fri Mar 28 01:04:56 2014 +0400
@@ -20,6 +20,7 @@
 		public bool           StopMapping      { get; set; }
 		[CLSCompliant(false)]
 		public IMapDataSource DataSource       { get; set; }
+        public int[]          MappingIndex     { get; set; }
 
 		private Dictionary<object,object> _items;
 		public  Dictionary<object,object>  Items