S
shapper
Hello,
I have the following:
Articles.Select(a => a.IsPublished = true);
But when I try to define two properties:
Articles.Select(a => a.IsPublished = true, a.UpdateAt = DateTime.Now);
I get an error on the second 'a':
The name 'a' does not exist in the current context
Am I doing something wrong or I can't do this with Linq?
Thanks,
Miguel
I have the following:
Articles.Select(a => a.IsPublished = true);
But when I try to define two properties:
Articles.Select(a => a.IsPublished = true, a.UpdateAt = DateTime.Now);
I get an error on the second 'a':
The name 'a' does not exist in the current context
Am I doing something wrong or I can't do this with Linq?
Thanks,
Miguel