public class ReduceResult
{
public string Text { get; set; }
public string UserName { get; set; }
public string ProfileImageUrl { get; set; }
}
样本记录:
UserName Text
UsernameA Text1, Text2, Text3
UsernameB Text2, Text3, Text4
UsernameC Text1, Text2, Text3
我要求用户包含 where 子句中提到的所有文本。例如
如果 where 子句包含 Text IN { Text1, Text2, Text3 },我应该得到 User 的记录,'A'因为'C'所有必需的文本都包含在他们的记录中。我不应该得到用户'B'记录,因为'Text1'他的记录中没有。我需要使用它来实现它LINQ。你能指导我正确的方向吗?