Skip to content

Commit a57e049

Browse files
authored
Merge pull request #191 from Northcode/Northcode-patch-exception-msg
Improve exception message in AseParameter ctor
2 parents 997af4c + ec5627f commit a57e049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AdoNetCore.AseClient/AseParameter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public AseParameter()
4040
/// <param name="value">An object that is the value of the parameter.</param>
4141
public AseParameter(string parameterName, object value) : this()
4242
{
43-
Value = value ?? throw new ArgumentNullException();
43+
Value = value ?? throw new ArgumentNullException($"Value for parameter '{parameterName}' cannot be null! If you meant to insert NULL, use DbNull.Value instead.");
4444
ParameterName = parameterName;
4545
}
4646

0 commit comments

Comments
 (0)