20
If you use the contains to method then you are doing a LIKE '%somestring%'. If you use a startswith method then it is the same as 'somestring%'. Finally, endswith is the same as using '%somestring'.
To summarize, contains will find any pattern in the string but startswith and endswith will help you find matches at the beginning and end of the word.
Thanks--good answers.
This is, in fact, a DateTime type; I had to typecast "stoptime" as:
var query = from p in dbTransSummary.Transaction_Logs
where ( (DateTime) p.StopTime).Year == dtRollUpDate.Year
select
Minor point. It works great!