!59 sql server 检测存储过程是否存在,存储过程名固定问题

Merge pull request !59 from apgk/master
This commit is contained in:
阿妮亚
2024-06-05 06:06:05 +00:00
committed by Gitee
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -273,7 +273,7 @@ namespace SqlSugar
{
get
{
return "select count(*) from sys.objects where [object_id] = OBJECT_ID(N'sp_GetSubLedgerJoinWithdrawalApplicationRecords') and [type] in (N'P')";
return "select count(*) from sys.objects where [object_id] = OBJECT_ID(N'{0}') and [type] in (N'P')";
}
}
#endregion

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -273,7 +273,7 @@ namespace SqlSugar
{
get
{
return "select count(*) from sys.objects where [object_id] = OBJECT_ID(N'sp_GetSubLedgerJoinWithdrawalApplicationRecords') and [type] in (N'P')";
return "select count(*) from sys.objects where [object_id] = OBJECT_ID(N'{0}') and [type] in (N'P')";
}
}
#endregion