예제 #1
0
 public override void Map(IMapDataSource source, object sourceObject, int sourceIndex, IMapDataDestination destination, object destinationObject, int destinationIndex)
 {
     if(source.IsNull(sourceObject, sourceIndex))
     {
         destination.SetNullableGuid(destinationObject, destinationIndex, null);
     }
     else
     {
         destination.SetNullableGuid(destinationObject, destinationIndex, source.GetNullableGuid(sourceObject, sourceIndex));
     }
 }
예제 #2
0
 sealed class NG : MB <Guid?>       { public override Guid?From(IMapDataSource s, object o, int i)
                                      {
                                          return(s.GetNullableGuid(o, i));
                                      }