How to String Concatenation in Entity SQL?

2019-06-07 17:04发布

问题:

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


回答1:

It is a documentation problem. Try System.String instead of Edm.String.