How to convert the following SQL statement to Linq statement?
select * from "schema_test".project where 'User1'=ANY("collaborators");
Here collaborators is a character varying array.
Note: The contains operator throws error at the postgre side as it is meant only for Array to array comparison.
Sample Linq which has error - context.Projects.Where(x => x.Collaborators.Contains(userId))
Any suggestions would help a lot.