1234567891011121314151617181920212223242526 |
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Linq;
- using System.Text;
- namespace Ant.Mapper
- {
- public class MappingMemberBinder : IValueSetter
- {
- IMRM _mMapper;
- int _ordinal;
- public MappingMemberBinder(IMRM mMapper, int ordinal)
- {
- this._mMapper = mMapper;
- this._ordinal = ordinal;
- }
- public int Ordinal { get { return this._ordinal; } }
- public void SetValue(object obj, IDataReader reader)
- {
- this._mMapper.Map(obj, reader, this._ordinal);
- }
- }
- }
|