Skip to content

Commit af61b87

Browse files
committed
Changed implementation for determining if the query is a stored procedure
1 parent a01392e commit af61b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/DbQueryUtility/Repository/SqlDbQueryRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public XDocument Query(string query, string configurationKey)
2222
{
2323
using (SqlCommand command = new SqlCommand(query, connection))
2424
{
25-
if(query.Split(' ').Count() == 0)
25+
if(!query.Contains(' '))
2626
{
2727
command.CommandType = System.Data.CommandType.StoredProcedure;
2828
}

0 commit comments

Comments
 (0)