Skip to content

Commit e9654b8

Browse files
Fix invalid CommandType error string (#244)
1 parent 79b2251 commit e9654b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SqlBindingUtilities.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ public static SqlCommand BuildCommand(SqlAttribute attribute, SqlConnection conn
125125
}
126126
else if (attribute.CommandType != CommandType.Text)
127127
{
128-
throw new ArgumentException("The Type of the SQL attribute for an input binding must be either CommandType.Text for a plain text" +
129-
"SQL query, or CommandType.StoredProcedure for a stored procedure.");
128+
throw new ArgumentException("The type of the SQL attribute for an input binding must be either CommandType.Text for a direct SQL query, or CommandType.StoredProcedure for a stored procedure.");
130129
}
131130
ParseParameters(attribute.Parameters, command);
132131
return command;

0 commit comments

Comments
 (0)