BHoM / BHoM/SQL_Toolkit

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

Aperta
#30 0 commenti 0 reazioni 1 assegnatario Rivendicata da @adecler Vedi su GitHub
type:bug
Lingua principale
C#
Stelle
1
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

#### 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.