Welcome to the POB User Group Online Community! › Forums › PUG DACH › SDM: SQL Item_Item Abfrage in PQL? › Reply To: SDM: SQL Item_Item Abfrage in PQL?
14/03/2016 at 10:18
#3325
Keymaster
Sobald die gewünschte Abfrage dann in einer SQL Server Function oder Stored Procdure eingebettet ist…
Erstellen von benutzerdefinierten Funktionen
https://msdn.microsoft.com/de-de/library/ms191320%28v=sql.120%29.aspx
… kannst Du diese dann dem PQL (NHibernate) Dialekt bekanntmachen.
Das wäre dann ein passender Eintrag in der Wendia.POB.exe.custom.config.
Beispiel
<sqlDialectSettings>
<dialects>
<add database="mssql">
<clear/>
<add name="helloworld" sqlFunctionType="SQLFunctionTemplate" returnType="String" expression="dbo.helloworld(?1)"/>
</add>
</dialects>
</sqlDialectSettings>
Gruß aus MUC,
Christian