Пример #1
0
    protected override object CastFromImp(IntegerViewColumnType viewColumnType, object viewColumnValue)
    {
        int i = (int)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(IntegerViewColumnType viewColumnType, object viewColumnValue)
 {
     return(Convert.ToInt64(viewColumnValue));
 }
Пример #3
0
 protected override object CastFromImp(IntegerViewColumnType viewColumnType, object viewColumnValue)
 {
     return(this.GetNullValue());
 }
Пример #4
0
    protected override object CastFromImp(IntegerViewColumnType viewColumnType, object viewColumnValue)
    {
        int i = Convert.ToInt32(viewColumnValue);

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