I have LINQ query like this
ApplicationDbContext context = new ApplicationDbContext();
IEnumerable<InvitationMails> customers = context.InvitationMails
.Where(c => c.LinkStart == null)
.AsEnumerable()
.Select(c => {
c.LinkStart = start;
return c;
});
I need to select LinkStart, LinkEnd, and Link columns with checking for null values like this.
.Where(c => c.LinkStart == null)
.Where(c => c.LinkEnd == null)
.Where(c => c.Link == null)
But how do write query for select?
Model
public string Link { get; set; }
public DateTime? LinkStart { get; set; }
public DateTime? LinkEnd { get; set; }
LinkStart,LinkEnd, andLinkof the same Type?