Question

Is there any way I can do

Select TableName.SomeColumn As SomeAlias FROM TableName

In Subsonic v2.2

Était-ce utile?

La solution

How about:

DAL.DB.Select(DAL.MyTable.MyColumn.QualifiedName + " AS SomeAlias")
    .From<DAL.MyTable>()
    ....
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top