A
A
AndNovak2016-08-14 17:45:55
C++ / C#
AndNovak, 2016-08-14 17:45:55

How to properly organize a database search?

The database has several tables. I would like to organize a search in all tables. I think to do it in the following way
var t = from n in Product
Where n.Productname. Contains(textbox.text) || and so on ..
Is this the right train of thought?
And I would also like to clarify one point, how do you then display the results in the datagrid?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MrDywar Pichugin, 2016-08-14
@Dywar

stackoverflow.com/questions/7938507/ef-code-first-...
But I like extension methods better IQueryable query = table.Query().Where( x => x.Name == 'query');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question