Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object not IEnumerable
Message
From
05/07/2010 18:17:46
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
05/07/2010 17:53:36
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01471481
Message ID:
01471487
Views:
40
I think I got it. At least I got rid of the errors.
        public IQueryable getDirectory()
        {
            IQueryable queryobj = null;
            queryobj = 
                 from dr in this.oEFobject.DIRECTORies 
                        select dr;

            return queryobj;
        }
>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;
>        }
>
Previous
Reply
Map
View

Click here to load this message in the networking platform