Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filtering on a date literal
Message
 
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Divers
Thread ID:
01554501
Message ID:
01554507
Vues:
25
>Can you declare a variable
>
>var dt = new DateTime(...)
>
>Where((e => e.EmpId == 648476 && e.ExpDate == dt)

That did not seem to work. Oddly enough, this did:
     where e.EmpID == 648476 && e.ExpDate == new System.DateTime(7777, 12, 31)
even though I did not get an error when using Datetime() (without the System qualifier) when I attempted to create the variable. I'll have to play around with this some more.
Del
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform