Execute SQL function when loading document

This commit is contained in:
Jonathan Jenne
2022-05-03 12:29:08 +02:00
parent 623e1717d6
commit 5fe4079028
4 changed files with 57 additions and 20 deletions

View File

@@ -8,6 +8,14 @@ Namespace Templates
Public Class TemplateConfig
Public Property Items As List(Of TemplateConfigItem)
Public ReadOnly Property SqlItems As List(Of TemplateConfigItem)
Get
Return Items.
Where(Function(item) item.Function.Name = Constants.FUNCTION_SQL).
ToList()
End Get
End Property
Public Function GetColumn(pName As String, pTable As String) As TemplateConfigItem
Return Items.
Where(Function(c) c.Name = pName And c.Table = pTable).