How do I build a search mechanism for my application?

后端 未结 7 1624
我在风中等你
我在风中等你 2020-12-30 13:34

It seems to be a common requirement nowadays to have a search feature that can search almost anything you want. Can anyone give me samples or tips as to how to go about buil

7条回答
  •  臣服心动
    2020-12-30 14:03

    To follow up on fallen888's answer:

    You could create a class with a method taking an array or list of search keywords for input. Create LINQ queries related to each table, and for instance use the "LIKE" operator in some of the ways explained in this blogpost to search the right columns for matching content. Of course, this will not be very optimized, but will work for small systems :)

提交回复
热议问题