是否可以将Entity Framework与具有条件选择的存储过程一起使用?
CREATE PROCEDURE lookupblogs
(@lookup_profile VARCHAR(1))
AS
IF @lookup_profile IN ( '1')
BEGIN
SELECT 'test1' = '2', 'test2' = '2'
END
ELSE IF @lookup_profile IN ('2')
BEGIN
SELECT 'test3' = '3', 'test4' = '4', 'test5' = '5'
END