Delegate 'System.Func<Testing_Apr.database_Bd,int,bool>' does not take 1 arguments
string' does not contain a definition for 'split' and no extension method 'split' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
var data = db.database_Bd.AsQueryable(); if (query.startDate != null) { data = data.Where(c => c.UploadDate >= query.startDate); } if (!string.IsNullOrEmpty(query.name)) { var list = query.name.split(','); data = data.Where(pr => list.Any(pr2 => pr.Name.Contains(pr2))); }
var list = query.name.Split(',');
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)