Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object not IEnumerable
Message
De
05/07/2010 18:17:46
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
05/07/2010 17:53:36
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01471481
Message ID:
01471487
Vues:
39
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;
>        }
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform