in my database i save users tag in table the table structure is Table Name : User
Id Name Tags
1 Jack White,Yellow,Green
2 smith Yellow,Green
3 smith Blank
....
the condition is:
string[] tags = {"Yellow","Green"};
I hope can get the data from database,so this is my lambda:
unitOfWork.Repository<User>().find(x=>!x.Any(x.Tag.......);
the sql like:
Select * from Users Where Tags not in('Yellow','Green')
but the tags in database is long string with ","