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); } }
protected override object CastFromImp(IntegerViewColumnType viewColumnType, object viewColumnValue) { return(Convert.ToInt64(viewColumnValue)); }
protected override object CastFromImp(IntegerViewColumnType viewColumnType, object viewColumnValue) { return(this.GetNullValue()); }
protected override object CastFromImp(IntegerViewColumnType viewColumnType, object viewColumnValue) { int i = Convert.ToInt32(viewColumnValue); return(!(i == 0)); }
protected override object CastFromImp(IntegerViewColumnType viewColumnType, object viewColumnValue) { return(viewColumnValue.ToString()); }