Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object not IEnumerable
Message
From
05/07/2010 17:53:36
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Databases
Title:
Object not IEnumerable
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01471481
Message ID:
01471481
Views:
104
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;
        }
Next
Reply
Map
View

Click here to load this message in the networking platform