我很难用我 Delegate Function MyDelegate() As List(Of ProgramLog)
' GET: /ProgramLog
Function Index(Optional ByVal delegate1 As MyDelegate = Nothing) As ActionResult
Dim proglog As New List(Of ProgramLog)
If delegate1 Is Nothing Then
proglog = FromOneDayAgo() 'default
Else
'??? check whats in delegat1 whether method : FromTwoDaysAgo ot FromThreeDaysAgo
'and pass to proglog and then to view
End If
Return View(proglog)
End Function
的{{1}}语句的结果创建VIEW
。以下是我的语法:
SELECT
我也试过这个也行不通:
CTE
有人想帮我解决这个问题吗?