2010-09-06 101 views

回答

0

使用ObjectContext.ExecuteStoreCommand(需要EF 4)。

0

,如果我理解正确试试这个

CREATE PROCEDURE sp_calculatesalary(@EmployeeId as int) 
begin 
declare @dynsql varchar(500)=' Salary,Username from employee where [email protected]'  
exec sp_executesql @dynsql,'@empID int',@[email protected] 
SELECT 1 as salary,2 as username 
end 

它解决了存储过程映射问题