How do I append a 'where' clause using VB.NET and LINQ?

前端 未结 5 1356
别跟我提以往
别跟我提以往 2020-12-16 10:28

I am pretty new to VB.NET and am having a bit of trouble here with something I thought should be simple.

Keeping it simple, let\'s say I have a Document table with \

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 10:58

    Dim query = From document In _context.Documents where document.name = 'xpto' select document 
    

    Or

    Dim query = From document In _context.Documents where document.name.contains('xpto') select document 
    

提交回复
热议问题