Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi All
here emp is table from data base using using I get into wcf

XML
TestDataContext tm = new TestDataContext();


        public List<Emp> GetEmpl()
        {
            var selected = tm.GetEmp();
            List<Emp> em=selected.Tolist();
            return em;
        }
Posted
Comments
Sergey Alexandrovich Kryukov 20-Nov-13 1:33am    
Not clear at all. What's the problem?
—SA
kingsa 20-Nov-13 1:35am    
I am getting error GetEmp is stored procedure,after getting data i want to return in list
Sergey Alexandrovich Kryukov 20-Nov-13 1:42am    
Still not...
—SA
Er Daljeet Singh 20-Nov-13 1:39am    
What you want to do exactly we are not getting anything from your question..
kingsa 20-Nov-13 1:44am    
public List<Emp> GetEmpl()
{
var selected = tm.GetEmp();
List<Emp> em=selected.Tolist();
return em;
}</pre>

Here i am not able to getting data var to list emp

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