try
{
var data = (from query in mg.RequestWithLocation
where
query.UserName.StartsWith(TextBoxUserID.Text) &&
query.Site.StartsWith(TextBoxSite.Text) &&
query.Content.StartsWith(TextBoxBarcode.Text) &&
query.Action == DropDownListStatus.Text
select new
{
UserID = query.UserName,
Site = query.Site,
AddressID = query.AddressID,
Parameter = query.Parameters,
Barcode = query.Content,
Trigger = query.TriggerDate,
Received = query.ReceivedDate,
Latitude = query.Latitude,
Longtitude = query.Longitude,