/// <summary>
 /// Initializes a new instance of the <see cref="InstanceExpressionBuilder{T}"/> class.
 /// </summary>
 /// <param name="propertyMapperDelegateBuilder">
 /// The <see cref="IMapperDelegateBuilder{T}"/> that is responsible for emitting a method that is capable of mapping a <see cref="IDataRecord"/>
 /// to an instance of <typeparamref name="T"/>.
 /// </param>
 /// <param name="ordinalSelector">
 /// The <see cref="IOrdinalSelector"/> that is responsible for providing a set of ordinal values for the public properties of <typeparamref name="T"/>.
 /// </param>
 /// <param name="manyToOneExpressionBuilder">
 /// The <see cref="IManyToOneExpressionBuilder"/> that is responsible for creating an <see cref="Expression{TDelegate}"/> that represents
 /// mapping many to one relations.
 /// </param>
 public InstanceExpressionBuilder(IMapperDelegateBuilder <T> propertyMapperDelegateBuilder, IOrdinalSelector ordinalSelector, IManyToOneExpressionBuilder manyToOneExpressionBuilder)
 {
     this.propertyMapperDelegateBuilder = propertyMapperDelegateBuilder;
     this.ordinalSelector            = ordinalSelector;
     this.manyToOneExpressionBuilder = manyToOneExpressionBuilder;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CachedOrdinalSelector"/> class.
 /// </summary>
 /// <param name="ordinalSelector">
 /// The <see cref="IOrdinalSelector"/> being decorated.
 /// </param>
 public CachedOrdinalSelector(IOrdinalSelector ordinalSelector)
 {
     this.ordinalSelector = ordinalSelector;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CachedOrdinalSelector"/> class.
 /// </summary>
 /// <param name="ordinalSelector">
 /// The <see cref="IOrdinalSelector"/> being decorated.
 /// </param>
 public CachedOrdinalSelector(IOrdinalSelector ordinalSelector)
 {
     this.ordinalSelector = ordinalSelector;
 }