示例#1
0
 /// <summary>
 /// Invokes the <see cref="MapDestToSrceWhen(Func{DatabaseRecord, bool})"/> clauses to determine whether mapping from the destination should occur.
 /// </summary>
 /// <param name="dr">The <see cref="DatabaseRecord"/>.</param>
 /// <returns><c>true</c> indicates that the mapping should occur; otherwise, <c>false</c>.</returns>
 public bool MapDestToSrceWhen(DatabaseRecord dr)
 {
     return((_mapDestToSrceWhen == null) ? true : _mapDestToSrceWhen.Invoke(dr));
 }
示例#2
0
 /// <summary>
 /// Sets the source property value from <see cref="DatabaseRecord"/>.
 /// </summary>
 /// <param name="entity">The source entity.</param>
 /// <param name="dr">The <see cref="DatabaseRecord"/>.</param>
 /// <param name="operationType">The single <see cref="Mapper.OperationTypes"/> being performed to enable selection.</param>
 void IDatabasePropertyMapper.SetSrceValue(object entity, DatabaseRecord dr, OperationTypes operationType)
 {
     SetSrceValue((TSrce)entity, dr, operationType);
 }
示例#3
0
 /// <summary>
 /// The <see cref="DatabaseRecord"/> method invoked for each record for its respective dataset.
 /// </summary>
 /// <param name="dr">The <see cref="DatabaseRecord"/>.</param>
 void IMultiSetArgs.DatasetRecord(DatabaseRecord dr)
 {
     _value = Mapper.MapFromDb(dr, OperationType);
 }