I am trying to create some business classes in front of my EF design. I am using the following code but when the class in the web receives the object the foreach() errros because the object type in not IEnumerable?? Second, text boxes don't seem to be bind able except in code. What is the best way to get the data out of each column with a LINQ result object?
Thanks.
public object getDirectory()
{
var queryobj =
from dr in this.oEFobject.DIRECTORies
select dr;
return queryobj;
}