0
|
1 using System;
|
|
2 using System.Collections.Generic;
|
|
3 using System.Diagnostics;
|
|
4
|
|
5 using BLToolkit.Mapping;
|
|
6
|
|
7 namespace BLToolkit.Reflection
|
|
8 {
|
|
9 public class InitContext
|
|
10 {
|
|
11 public object[] MemberParameters { get; set; }
|
|
12 public object[] Parameters { get; set; }
|
|
13 public bool IsInternal { get; set; }
|
|
14 public bool IsLazyInstance { get; set; }
|
|
15 public object Parent { get; set; }
|
|
16 public object SourceObject { get; set; }
|
|
17 public ObjectMapper ObjectMapper { get; set; }
|
|
18 public MappingSchema MappingSchema { get; set; }
|
|
19 public bool IsSource { get; set; }
|
|
20 public bool StopMapping { get; set; }
|
|
21 [CLSCompliant(false)]
|
|
22 public IMapDataSource DataSource { get; set; }
|
|
23
|
|
24 private Dictionary<object,object> _items;
|
|
25 public Dictionary<object,object> Items
|
|
26 {
|
|
27 [DebuggerStepThrough]
|
|
28 get { return _items ?? (_items = new Dictionary<object, object>()); }
|
|
29 }
|
|
30
|
|
31 public bool IsDestination
|
|
32 {
|
|
33 [DebuggerStepThrough] get { return !IsSource; }
|
|
34 [DebuggerStepThrough] set { IsSource = !value; }
|
|
35 }
|
|
36 }
|
|
37 }
|