title: How to send table data to client from WCF service
body: <pre><code>public DataTable Get_table_data()
      {
          DataTable dt = new DataTable();
          dt.Columns.Add("Id");
          dt.Columns.Add("user_name");
          dt.Columns.Add("user_email");
          dt.Columns.Add("status");
          dt.Columns.Add("Role");
          DataRow data_table_new_row = null;
          var rows = (from s in db.logins
                    where s.status == 1
                    select s);
  
          foreach (var r in rows)
          {
              data_table_new_row= dt.NewRow();
              dt.Rows.Add(r.Id,r.user_name,r.user_email,r.status,r.Role);
          }
          int c = dt.Rows.Count;
          return dt;
      }
  </code></pre>
  
  <p>i trying to make WCF application. i want to get all table data from table and return data to client application.i have converted linq data to tabledata. but it gives me error that wcf does not support for this type of return type.</p>