String + Int + String is not working, when i assign the values to string column -> I Need the Name column value like :
AS Project Employee ID: 1878 Employee Name: Kevin dominic..
select new
{
ID = AS_ProjectHeader.ID,
PartyID = AS_ProjectHeader.PartyID,
Name = AS_ProjectHeader.Name + " Employee ID: " + AS_ProjectHeader.EmployeeID + " Employee Name:" + AS_ProjectHeader.PAYE_Employee.Forenames + " " + AS_ProjectHeader.PAYE_Employee.Surname,
ClientName = AS_ProjectHeader.AS_PartyList.Name,
StartDate = AS_ProjectHeader.StartDate,
EndDate = AS_ProjectHeader.EndDate,
});
EDIT: Additional information:
If i use convert to string for the integer value i get this error :
LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression.