hey guys,
i have a stored procedure known as sp_sitesearch, which returns the result of the site search, now what i want to do is, i want to call this sp to gridview using LINQ, coz one of my friend suggested that linq's performance is faster than DataTable or DataSet. so i want to try that, so i created a dbml, and added my SP inside this, and inside the .cs i wrote below code.
SiteSearchDataContext siteSearch = new SiteSearchDataContext();
gridArticle.DataSource = siteSearch.sp_SiteSearch(1, keyword);
gridArticle.DataBind();
here it throws an error saying, it should return IEnumerable or IDataSource, i got a shock when i found that it returns int... but i dont know how, as my sp is not returning anything, it just returns a resultset, so can anyone suggest me how should i use this to bind gridview.