try like this:
Using System.Data.Objects.SqlClient;
var searchTickets = db.Tickets
.Where(t => t.StatusID != 3 &&
SqlFunctions.StringConvert((double)t.TicketID).StartsWith(term)
.Take(10)
.Select(t => new
{
label = t.Summary
});
With EF 4 you can use SqlFunctions.StringConvert
. There is no overload for int
so you need to cast to a double
or a decimal
.