Click here to Skip to main content
15,917,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


i written stored procedure with two select statements as below


ALTER procedure [dbo].[data]
@companyname nvarchar(50),
@countryid int,
@location nvarchar(50)
as
begin

select distinct top 8 (LocationName) ,CompanyName ,Count(LocationName) as LocationCount from Job where( CompanyName=@companyname ) group by LocationName,CompanyName Order by LocationCount desc


select distinct top 8 (CompanyName),LocationName,Count(CompanyName) as CompanyCount from Job where( LocationName=@location ) group by LocationName,CompanyName Order by CompanyCount desc



end







in single procedure now i want to bind it two different datalist,how can i do it using linq(entityframework)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900