twisty7867 wrote:
Hi,
I am new to LLBLGen and working to transition from some LLBLGen 1.0/.NET 1.1 code to new 2.0/2.0 code. Right now we have a custom SqlServerDQE project to implement a few features, but I'm wondering if that is the "right" way to go about it.
As Walaa said, if the code works for you, why change. However you could refactor these out to code outside the DQE. It would be good to know what you're using: selfservicing or adapter.
The customizations do the following:
Code in CreateInsertDQ() keeps an eye out for any of our "special" field names and populates them with some appropriate data.
You could do this in the initialize events of an entity, or in a validator. Or if you're using adapter for example, you can add this code for all entities in an override of OnBeforeEntitySave in a derived class of the DataAccessAdapter class.
Code in CreateSelectDQ() appends "WHERE Status > 0" to every WHERE clause to ensure that logically deleted records are not returned.
Similar.