I have this Linq to SQL query sequence that basically returns a search in the PROJECTS table. and I used deferred execution to slowly create it.
var query = from p in objDBContext.PROJECTs
where (p.PROVIDER_ID == cwForm.productForm)
select p;
query = from p in query
where p.SubmittedDate >= cwForm.beginDateForm
select p;
I have written several SQL functions that return the values of scalar values and tables as a helper function, since LINQ does not support ISDATE()full-text search. they are in the same .dbml file as in the table Projects.
So now I have:
var dateQuery = from d in objDBContext.ISDATE
select d;
var ftsQuery = from f in objDBContext.FullTextSearch
select f;
My question is: how can I use these new objDBContexts in the original p request? I'm also interested in learning how to map the executequery () element in the original query.
Sort of:
query = from p in query
from d in dateQuery
from f in ftsQuery
where d.ISDATE(p.Field1) && f.FullContextSearch(searchString)
select p;
, . Google, .