【发布时间】:2014-06-10 21:14:56
【问题描述】:
这是我的存储过程如何在 Linq 中编写 请帮帮我
ALTER PROCEDURE sample
(@LID var char(20)=null
)
As
SET NO COUNT ON;
begin
declare @err1 int
begin transaction
BEGIN
Select * from sample_table where Aid is not null and Sid is not null and @LID IS NULL OR Lid = @LID
order by SrNo1, SrNo2, SrNo3
END
【问题讨论】:
-
Linq 的来源是什么?您使用 linq-to-sql 或 EF 还是有自己的对象?
-
其实这是我的存储过程。如何在linq查询中编写
标签: sql linq stored-procedures