I am calling stored procedure to get data from database using Linq. This stored procedure is using more than one table to return result using join :
public static List<classname> GetMediaTemp()
{
var medialist = (from m in Context.sp_Temp() select new classname
{
str_image = m.str_image,
str_image_type = m.str_image_type,
str_photodrawvideo = m.str_photodrawvideo,
}).ToList();
if (medialist.Count > 0)
{
return medialist
}
}
Everything working fine but now i have to filter data in this object list like on the calling end
List<classname> photoList = GetMediaTemp();//Here i want to filter list on the basis on str_photodrawvideo column.
Problem :
How i can perform this filter ?
Thanks in Advance. For more info please let me know.