使用Subsonic 2.2进行列别名

时间:2012-06-28 16:14:37

标签: subsonic subsonic2.2

我有什么办法吗

选择TableName.SomeColumn As SomeAlias FROM TableName

在Subsonic v2.2中

1 个答案:

答案 0 :(得分:0)

怎么样:

DAL.DB.Select(DAL.MyTable.MyColumn.QualifiedName + " AS SomeAlias")
    .From<DAL.MyTable>()
    ....