Hi Frans,
I just had to tackle that issue once more for one of our app, and I'm wondering if you'd consider moving on from that trick.
(Here's what we've had so far
' __LLBLGENPRO_USER_CODE_REGION_START CustomDataAccessAdapterCode
Public ReadOnly Property ActiveConnection() As IDbConnection
Get
Return MyBase.GetActiveConnection()
End Get
End Property
' __LLBLGENPRO_USER_CODE_REGION_END
I understand that using a custom ActionQuery to execute custom sql is not designed behaviour, but in some cases I think it can be quite legitimate:
Here's our scenario: We're handling publishing upgrades for some of our customers, for which we only have access to the web interface.
As the db evolves, we upload packages for the newly generated dll / some schema updating scripts, which is ok.
Then a dedicated interface allows for selectively running the update scripts.
I thought that running the scripts in an ActionQuery is the proper way since I benefit from the common configuration (connection string, schema etc...) and I can use cross scripts transactions more easily.
Basically, I would think that there are such scripts / queries that you can't handle with the ORM logic, and that in those cases I'm better leveraging the common low level ADO.Net wrapper provided by an DataAccessAdapter, than reverting to pure ADO.Net. That said, I'd feel better not having to tweak the standard code to do so.
Cheers,
PS: Looking forward to the incoming beta