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)

posted on 2016-12-22 11:10  itjeff  阅读(1902)  评论(0编辑  收藏  举报

导航