Lampda或Linq中的SqlFunctions.StringConvert()

要使用 Lampda或Linq中的SqlFunctions.StringConvert(),

需要引用命名空间using System.Data.Objects.SqlClient,

该函数可进行模拟数据库中的number 到 string 的类型转换,查询IQuerable时用得上。

Namespace:   System.Data.Objects.SqlClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

原文地址:https://www.cnblogs.com/itjeff/p/6210367.html