I have the query:
var query = DataContext.Fotos.Where(x => x.Pesquisa.Contais(\"myTerm\")
The SQL generated is:
SELECT
...
You can use raw SQL queries with EF. So, there is another easy workaround.
using (DBContext context = new DBContext())
{
string query = string.Format("Select Id, Name, Description From Fotos Where CONTAINS(Pesquisa, '\"{0}\"')", textBoxStrToSearch.Text);
var data = context.Database.SqlQuery(query).ToList();
dataGridView1.DataSource = data;
}
Input validation etc. is omitted. Edit: Code is modified according to OP's query.