comparison Source/Mapping/SimpleDestinationListMapper.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 using BLToolkit.Reflection;
4
5 namespace BLToolkit.Mapping
6 {
7 public class SimpleDestinationListMapper : IMapDataDestinationList
8 {
9 [CLSCompliant(false)]
10 public SimpleDestinationListMapper(IMapDataDestination mapper)
11 {
12 _mapper = mapper;
13 }
14
15 private readonly IMapDataDestination _mapper;
16
17 #region IMapDataDestinationList Members
18
19 public virtual void InitMapping(InitContext initContext)
20 {
21 }
22
23 [CLSCompliant(false)]
24 public virtual IMapDataDestination GetDataDestination(InitContext initContext)
25 {
26 return _mapper;
27 }
28
29 public virtual object GetNextObject(InitContext initContext)
30 {
31 return _mapper;
32 }
33
34 public virtual void EndMapping(InitContext initContext)
35 {
36 }
37
38 #endregion
39 }
40 }