db.Library.Where(a => (dt.AddMonths(一) > a.TimeBook) && (dt < a

db.Library.Where(a (dt.AddMonths(1) a.TimeBook) && (dt a.TimeBook)).Where返回指定类型,某月的

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();