具有simplerepository的存储过程
-
15-09-2020 - |
题
如何使用simplerepository执行存储过程,并将键入的列表作为答案? 我正在使用括号3。
谢谢。
解决方案
找到了我的答案:
StoredProcedure sproc = new StoredProcedure("SprocName", ProviderFactory.GetProvider(ConnectionStringName));
string input= "input text";
sproc.Command.AddParameter("input", input, DbType.String);
return sproc.ExecuteTypedList<T>();
. 不隶属于 StackOverflow