DateTime ss = DateTime.Parse((DateTime.Now.Year).ToString() + "-01-01"); //取当年日期
= db.Exam8_School.Where(d => d.quoat == 1 && d.estate == 1 && d.isDel == true && d.addTime >= ss).Count(); //取日期等于本年的
DateTime ss = DateTime.Parse((DateTime.Now.Year).ToString() + "-01-01"); //取当年日期
= db.Exam8_School.Where(d => d.quoat == 1 && d.estate == 1 && d.isDel == true && d.addTime >= ss).Count(); //取日期等于本年的