|
|
Parcourir par tags
Tous les tags » .NET » Linq » ADO » Quizz (RSS)
-
Le code suivant :
using (var context = new DataClasses1DataContext())
{
int[] keyValues = { 1, 2, 3 };
var q = from p in context.Products
where keyValues.Contains(p.ProductID)
select p;
var r = new
{
Count = q.Count(),
CountCategory = (from p in q
...
|
|
|