/// <summary> /// Initializes a new instance of the <see cref="CachedRelationDelegateBuilder{T}"/> class. /// </summary> /// <param name="relationDelegateBuilder"> /// The <see cref="IRelationDelegateBuilder{T}"/> being decorated. /// </param> public CachedRelationDelegateBuilder(IRelationDelegateBuilder <T> relationDelegateBuilder) { this.relationDelegateBuilder = relationDelegateBuilder; }
/// <summary> /// Initializes a new instance of the <see cref="DataRecordMapper{T}"/> class. /// </summary> /// <param name="instanceDelegateBuilder">The <see cref="IInstanceDelegateBuilder{T}"/> that is responsible for creating a delegate /// that is capable of producing an instance of <typeparamref name="T"/> based on the current <see cref="IDataRecord"/>.</param> /// <param name="keyDelegateBuilder">The <see cref="IKeyDelegateBuilder"/> that is responsible for creating a delegate /// that is capable of producing an <see cref="IStructuralEquatable"/> instance based on the current <see cref="IDataRecord"/>.</param> /// <param name="oneToManyDelegateBuilder">The <see cref="IRelationDelegateBuilder{T}"/> that is responsible for creating a delegate /// that is capable of mapping one to many relations</param> public DataRecordMapper(IInstanceDelegateBuilder <T> instanceDelegateBuilder, IKeyDelegateBuilder keyDelegateBuilder, IRelationDelegateBuilder <T> oneToManyDelegateBuilder) { this.instanceDelegateBuilder = instanceDelegateBuilder; this.keyDelegateBuilder = keyDelegateBuilder; this.oneToManyDelegateBuilder = oneToManyDelegateBuilder; }