Example #1
0
 protected override object CastFromImp(TimeSpanViewColumnType viewColumnType, object viewColumnValue)
 {
     return(Convert.ToInt64(((System.TimeSpan)viewColumnValue).Days));
 }
Example #2
0
 protected override object CastFromImp(TimeSpanViewColumnType viewColumnType, object viewColumnValue)
 {
     System.TimeSpan span = (System.TimeSpan)viewColumnValue;
     return((new System.DateTime(1, 1, 1)).AddDays(span.Days));
 }
 protected override object CastFromImp(TimeSpanViewColumnType viewColumnType, object viewColumnValue)
 {
     return(this.GetNullValue());
 }
Example #4
0
    protected override object CastFromImp(TimeSpanViewColumnType viewColumnType, object viewColumnValue)
    {
        TimeSpan t = (System.TimeSpan)viewColumnValue;

        return(!(t == TimeSpan.Zero));
    }
Example #5
0
 protected override object CastFromImp(TimeSpanViewColumnType viewColumnType, object viewColumnValue)
 {
     return(viewColumnValue.ToString());
 }