A very quick question
SQL:
SELECT VALUE ROW( ('#' + CAST(pack.PackageID as Edm.String)) as PackageID) From ProductPackage
It show error, edm.String not found, I also try String or Varchar,still error.
I have read that reference but no help.
http://msdn.microsoft.com/en-us/library/bb386905.aspx
It is a documentation problem. Try System.String
instead of Edm.String
.
来源:https://stackoverflow.com/questions/5323842/how-to-string-concatenation-in-entity-sql