Ejemplo n.º 1
0
 public override void Map(IMapDataSource source, object sourceObject, int sourceIndex, IMapDataDestination destination, object destinationObject, int destinationIndex)
 {
     if(source.IsNull(sourceObject, sourceIndex))
     {
         destination.SetDateTime(destinationObject, destinationIndex, DateTime.MinValue);
     }
     else
     {
         destination.SetDateTime(destinationObject, destinationIndex, Convert.ToDateTime(source.GetNullableInt16(sourceObject, sourceIndex)));
     }
 }
Ejemplo n.º 2
0
 public override void Map(IMapDataSource source, object sourceObject, int sourceIndex, IMapDataDestination destination, object destinationObject, int destinationIndex)
 {
     if(source.IsNull(sourceObject, sourceIndex))
     {
         destination.SetString(destinationObject, destinationIndex, null);
     }
     else
     {
         destination.SetString(destinationObject, destinationIndex, Convert.ToString(source.GetNullableInt16(sourceObject, sourceIndex)));
     }
 }
Ejemplo n.º 3
0
 sealed class NI16 : MB <Int16?>      { public override Int16?From(IMapDataSource s, object o, int i)
                                        {
                                            return(s.GetNullableInt16(o, i));
                                        }