例子1 C# 调用存储过程
sql
CREATE PROCEDURE [dbo].[spFunc]
@id BIGINT, @isTrue BIT, @str NVARCHAR (60), @strZh NVARCHAR (60)
AS
BEGIN
SELECT *
FROM tableA
WHERE id = @id
AND isTrue = @isTrue
AND str = @str
AND strZh = @strZh;
END
csharp
long idLong = 18;
bool isBoolean = true;
string str= "str";
string strZh = "中文";
var tables = _db.TblA.FromSql($"exec spFunc {idLong},{isBoolean},{firstName},{lastNameZh}").ToList();