Skip to content

Better exception message when parameter isn't supported #925

@bgrainger

Description

@bgrainger

From PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#1287 (comment)

As per #410 (comment), unsupported parameter value types cause a NotSupportedException to be thrown:

throw new NotSupportedException("Parameter type {0} (DbType: {1}) not currently supported. Value: {2}".FormatInvariant(Value.GetType().Name, DbType, Value));

A documentation page explaining this in more detail should be created, and the exception message updated with a quick description of the solution (call .ToString()) and a link to the documentation.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions