BHoM / BHoM/SQL_Toolkit

Values for DateTime properties below SQLDateTime.MinValue cause errors on push

未关闭
#30 0 条评论 0 个 reaction 已指派 1 人 已被 @adecler 认领 在 GitHub 查看
type:bug
主要语言
C#
星标
1
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

#### Description:
When pushing any objects with a DateTime property set to DateTime.MinValue or any value before the SQLDateTime.MinValue of 1/1/1753, the push fails as the DateTime can not be sent to the DB. We should add handling to check for values below the SQL MinValue, and set them to the SQL MinValue accordingly.

#### Steps to reproduce:
Send object with a DateTime property set to earlier than 1753 to a SQL table for the corresponding object type.

#### Expected behaviour:
Successful push of the object, with the date set to the SQL MinValue.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。