public IQueryable<ConfigurationEntities> GetServiceByApplicationName(string desigName, string serviceName)
{
try
{
IQueryable lstEmpByDesig= new IQueryable; //error on this line
using (ConfigurationEntities ce = new ConfigurationEntities())
{
var query = ce.SelEmployeeByDesignationName(desigName);
lstEmpByDesig = query;
}
return lstEmpByDesig;
}
catch
{
return null;
}
}
But there is an error on IQueryable object declaration where I've mentioned //error on this line.
Satish Chilkury
MCTS .Net Framework 2.0 Web Applications
Web Developer 3.5
SATISD9X
Contributor
2713 Points
487 Posts
Re: Convert ComplexObject to IList
Apr 28, 2012 06:21 PM|LINK
I tried changing my above code to :
public IQueryable<ConfigurationEntities> GetServiceByApplicationName(string desigName, string serviceName) { try { IQueryable lstEmpByDesig= new IQueryable; //error on this line using (ConfigurationEntities ce = new ConfigurationEntities()) { var query = ce.SelEmployeeByDesignationName(desigName); lstEmpByDesig = query; } return lstEmpByDesig; } catch { return null; } }But there is an error on IQueryable object declaration where I've mentioned //error on this line.
MCTS .Net Framework 2.0 Web Applications
Web Developer 3.5
~ Please Mark as Answer if it solves your query ~