protected override string CastToImp(DateTimeSqlLiteralType sqlLiteralType, object propertyValue) { System.DateTime d = default(System.DateTime); System.DateTime.TryParseExact(propertyValue.ToString() , "yyyyMMdd" , DateTimeFormatInfo.InvariantInfo , DateTimeStyles.None, out d); return("'" + d.ToString("yyyy-MM-dd") + "'"); }
protected override string CastToImp(DateTimeSqlLiteralType sqlLiteralType, object propertyValue) { bool b = (bool)propertyValue; if (b) { return("0001-01-02"); } else { return("0001-01-01"); } }
protected override string CastToImp(DateTimeSqlLiteralType sqlLiteralType, object propertyValue) { System.DateTime d = (System.DateTime)propertyValue; return("'" + d.ToString("yyyy-MM-dd") + "'"); }
protected override string CastToImp(DateTimeSqlLiteralType sqlLiteralType, object propertyValue) { return("'0001-01-01'"); }