I am getting LINQ to Entities does not recognize the method 'System.String Concat(System.Object)' method, and this method cannot be translated into a store expression.
error when I am trying to concatenate number with string in LINQ? how to resolve this?
Dim initiativeDataList As IEnumerable(Of InitiativeData) =
SGAEntities.Fact_Initiative.Where(Function(factInitiative) factInitiative.Client_Idx = client_Idx).[Select](
Function(factInitiative) New InitiativeData() With { _
.ClientIdx = factInitiative.Client_Idx,
.HierarchyIdx = factInitiative.Hierarchy_Idx,
.CostCenterIdx = factInitiative.Cost_Center_Idx,
.LocationIdx = factInitiative.Location_Idx,
.InitiativeIdx = factInitiative.Initiative_Id,
....
....
.Location = String.Concat(factInitiative.Location_Idx) + ";" + factInitiative.Dim_Location.Location_Name,
}).ToList()