Пример #1
0
    protected override object CastFromImp(DoubleViewColumnType viewColumnType, object viewColumnValue)
    {
        int i = Convert.ToInt32(viewColumnValue);

        System.DateTime d = default(System.DateTime);
        if (System.DateTime.TryParseExact(i.ToString()
                                          , new[] { "yyyyMMdd" }
                                          , null
                                          , DateTimeStyles.AssumeLocal
                                          , out d))
        {
            return(d);
        }
        else
        {
            return(_nullDate);
        }
    }
Пример #2
0
 protected override object CastFromImp(DoubleViewColumnType viewColumnType, object viewColumnValue)
 {
     return(Convert.ToInt64(viewColumnValue));
 }
Пример #3
0
 protected override object CastFromImp(DoubleViewColumnType viewColumnType, object viewColumnValue)
 {
     return(this.GetNullValue());
 }
Пример #4
0
    protected override object CastFromImp(DoubleViewColumnType viewColumnType, object viewColumnValue)
    {
        double d = Convert.ToDouble(viewColumnValue);

        return(!(d == 0));
    }
Пример #5
0
 protected override object CastFromImp(DoubleViewColumnType viewColumnType, object viewColumnValue)
 {
     return(viewColumnValue.ToString());
 }