Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LINQ and VS 2005
Message
 
À
28/03/2008 09:44:42
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01305621
Message ID:
01306507
Vues:
6
>>Hi Viv, I think "ugly" is too small a word ! but Linq syntax is hardly a Rembrandt ? thanks for your time
>
>On the contrary, under VS 2008, LINQ is quite succinct and and easy to understand once the initial learning curve is dealt with. I'm current working on a project that involves querying against XML data, and LINQ is a lifesaver. There's even a point that I use LINQ to query an array. So it's quite the handy tool.

----------------------
Hey David

Any idea on why I can't get this select to take in my Statement?

public IEnumerable SubOrderDocView()
{
myVPCDataContext db = new myVPCDataContext();

IEnumerable docs = from d in db.SubmittedOrderDocumentViews
where d.status == 29
select new { ID = d.friendlyID, docXML = d.simpleDocumentXML } into UnReleased
select UnReleased;


return docs;

}

I don't want to extract the 20+ cols in the view, just the key and the docXML. This is in a DAL for a test project on Linq.

TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform