Best Practices for Building a Search App?

Is there a way to search all properties (without pulling all objects into memory – which I assume means building a list of each object’s properties with reflection, stringifying them, and then checking is out)? If not, this seems incredibly cumbersome as I’d have to build new logic for every new property I might add. Something like s.Contains(textFilter) in the above would be ideal.

“Only arguments that can be evaluated on the client are supported for the String.Contains method”

public static void MyFunction(MyErrorClass err) { var query = from filter in DataContext.ErrorFilters select filter; query = query.Where(f => err.ErrorMessage.Contains(f.ErrorMessage)); List<ErrorFilter> filters = query.ToList(); //…more code } So I’m having some issues with the above code, and I’m getting the error from the subject line at the line with query.ToList(). Here’s what I’m trying to … Read more

LINQDataSource – Query Multiple Tables?

I have a database and I’ve created a DBML Linq-to-SQL file to represent this database. I’ve created a new aspx page and dropped a linqdatasource and a formview control onto it. When I configure the linqdatasource it gives me the choice only to select * from one table…but I want to pull from multiple tables. e.g. I have tables like simple_person, simple_address, simple_phone, and I want to pull from all of them. How can I accomplish this?