Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number Of Rows In Data Context
Message
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Divers
Thread ID:
01470032
Message ID:
01470048
Vues:
33
>I'd like to create an array of objects:
>
>
>aspnetApplication[] applications = new aspnetApplication[dc.aspnet_Applications.Count}];
>
>
>I get "Cannot convert method group 'Count' to non-delegate type 'int'. 'DC' is the DBML. What's wrong here?

Having to read between the lines a bit here - but if I understand correctly what you're trying to do :
aspnetApplication[] applications = dc.aspnet_Applications.ToArray();
Update: But there's something wrong there. Logically it would be
aspnet_Applications[] applications = dc.aspnet_Applications.ToArray();
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform