hi when i build the solution this error showing
error Cannot implicitly convert type 'System.Linq.IQueryable<Threetierexample.ClsCustomer>' to 'System.Data.Linq.Table<Threetierexample.ClsCustomer>'. An explicit conversion exists (are you missing a cast?)
this is the code
public Table<ClsCustomer> getdetails(out string msg)
{
// customer;
try
{
Table<ClsCustomer> customer = Db.GetTable<ClsCustomer>();
var query = from c in customer
where c.CustomerCode == "333"
select c;
msg = "Success";
return query;
}
catch (Exception ex)
{
msg = ex.Message;
return null;
}
}
i want to pass the value of query