public ActionResult Search(string search, string type, string cover, string sin, string cus) { DateTime yesterday = DateTime.Today.AddBusinessDays(-1); var query = from s in db.data_qy where s.UploadDate == yesterday select (s); if (!String.IsNullOrEmpty(cover)) { query = query.Where(s => s.Cover == cover); } if (!string.IsNullOrEmpty(cus)) { string [] ids = cus.Split(','); query = query.Where(c => c.TAG.Contains(ids)); //error } // var data = query.ToList(); return View(query); }
string ids = cus.Split(',');
string [] ids = cus.Split(',');
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)