Using LLBLGen 4.2, adapter.
I have an issue in dealing with fetching/setting a null value from an Oracle VARCHAR2 field in Oracle.
If I set the entity field value to "", then the database is setting this as a null. So when I refetch, it's coming in as null. On the next save, when I set it to "", then llblgen is seeing this as a change and doing an UPDATE.
I'd like to avoid these unneeded UPDATES for performance reasons.
Per:
https://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=11625&HighLight=1
I believe the suggestion in the forums was to override: PreProcessValueToSet in the base object, so a "" is set to null...thus avoiding the UPDATE.
This seems like good behavior for Oracle, but our app shares the same entities for operating the app either in SQL Server -or- Oracle.
In the PreProcessValueToSet method, how can I detect the database type used, so I only do this behavior for Oracle?
For supporting different behavior for both Oracle and SQLServer (SQL Server, just using the default behavior), is PreProcessValueToSet the best place to do this?
Thanks!