Skip to content

Add better exception message when 0000-00-00 can't be converted #690

@bgrainger

Description

@bgrainger

When InvalidCastException("Unable to convert MySQL date/time to System.DateTime.") is thrown, add extra text to the exception message (and/or a troubleshooting documentation page) that explains how to solve the problem.

throw new InvalidCastException("Unable to convert MySQL date/time to System.DateTime.");

From DapperLib/Dapper#1323.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions