Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CachedKeyDelegateBuilder"/> class.
 /// </summary>
 /// <param name="keyDelegateBuilder">The <see cref="IKeyDelegateBuilder"/> instance that is
 /// responsible for creating a key delegate for a given type.</param>
 public CachedKeyDelegateBuilder(IKeyDelegateBuilder keyDelegateBuilder)
 {
     this.keyDelegateBuilder = keyDelegateBuilder;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CachedKeyDelegateBuilder"/> class.
 /// </summary>
 /// <param name="keyDelegateBuilder">The <see cref="IKeyDelegateBuilder"/> instance that is 
 /// responsible for creating a key delegate for a given type.</param>
 public CachedKeyDelegateBuilder(IKeyDelegateBuilder keyDelegateBuilder)
 {
     this.keyDelegateBuilder = keyDelegateBuilder;
 }