[OperationContract] List<SearchForVessel> GetSearchForVessel(string inpQuery) { PositionDataClassesDataContext context = new PositionDataClassesDataContext(); var res = from etas in context.Lloyds_ETAs join vessels in context.Lloyds_Vessels on etas.ImoNumber equals vessels.imo_no where etas.ImoNumber.Equals(inpQuery) select new SearchForVessel { Vessel_ID = etas.Vessel_ID, ImoNumber = etas.ImoNumber, Vessel_Name = etas.Vessel_Name, Last_Place = etas.Last_Place, Last_Place_Location = etas.Last_Place_Location }; return res.ToList(); }
where etas.ImoNumber.Equals(inpQuery)
where etas.ImoNumber.Contains(inpQuery)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)