AsDataView method - doesn't show up in intellisense RRS feed

  • Question

  • Hi everybody,

    I am converting a VFP program and I need to perform some additional transformations after I received the dataset back. 

    So, I've started writing this code

    DataSet ds;               
                   if (database.ExecuteSqlCommand(sqlCommand, out ds, ref messageText, ref statusCode))
                      var results = from r in ds.Tables[0].AsEnumerable()
                                    select new {resource1 = r.Field<String>("resource1") };

    The problem is, I will need to pass the result as datatable into another method. I do not see AsDataView method on the results. How should I pass that result then?

    Thanks in advance.

    For every expert, there is an equal and opposite expert. - Becker's Law

    My blog

    Thursday, May 9, 2013 7:15 PM