db.Library.Where(a => (dt.AddMonths(1) > a.TimeBook) && (dt < a.TimeBook)).Where
返回指定类型,某月的杂志 是这么写吗? dt怎么设成月份第一天,这样就可以让
dt.AddMonths(1)>TimeBook> a.TimeBook
magaView.Magazine = db.Library.Where(a => dt.Month == a.TimeBook.Month && dt.Year == a.TimeBook.Year && a.CategoryID == categoryId).ToList();