LINQ로 날짜 사이의 데이터를 검색하는 코드 조각 Published Mar 24, 2021 // 날짜 검색 추가 if (startDate.HasValue && endDate.HasValue) { items = items.Where(x => x.Occurred >= startDate && x.Occurred <= endDate); } Copy if (from != null && to != null) { items = items.Where(it => it.CreatedDate >= from && it.CreatedDate <= to); } Copy
Comments
Comments are closed