Skip to content

Commit 5daab77

Browse files
committed
1. optimized storage procedure call interface construction
1 parent 65a4bf5 commit 5daab77

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/SmartSql.DyRepository/RepositoryBuilder.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,7 @@ private StatementAttribute PreStatement(string scope, MethodInfo methodInfo, Typ
366366
}
367367
if (statementAttr.Execute == ExecuteBehavior.Auto)
368368
{
369-
SqlCommandType cmdType = SqlCommandType.Unknown;
370-
if (statementAttr.CommandType != CommandType.StoredProcedure)
371-
{
372-
cmdType = AnalyseCmdType(smartSqlMapper, statementAttr);
373-
}
369+
SqlCommandType cmdType = AnalyseCmdType(smartSqlMapper, statementAttr);
374370
if (returnType == typeof(int) || returnType == _voidType || returnType == null)
375371
{
376372
statementAttr.Execute = ExecuteBehavior.Execute;

0 commit comments

Comments
 (0)