public void TsIsContained() { using (var context = new BloggingContext(ConnectionString)) { context.Database.Log = Console.Out.WriteLine; context.Blogs.Add(new Blog { Name = "_" }); context.SaveChanges(); var result = context.Blogs.Select( x => NpgsqlTextFunctions.QueryIsContained( NpgsqlTextFunctions.AsTsQuery("cat"), NpgsqlTextFunctions.AsTsQuery("cat & rat"))).First(); Assert.That(result, Is.True); } }