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); } }
protected override object CastFromImp(DoubleViewColumnType viewColumnType, object viewColumnValue) { return(Convert.ToInt64(viewColumnValue)); }
protected override object CastFromImp(DoubleViewColumnType viewColumnType, object viewColumnValue) { return(this.GetNullValue()); }
protected override object CastFromImp(DoubleViewColumnType viewColumnType, object viewColumnValue) { double d = Convert.ToDouble(viewColumnValue); return(!(d == 0)); }
protected override object CastFromImp(DoubleViewColumnType viewColumnType, object viewColumnValue) { return(viewColumnValue.ToString()); }