Otis wrote:
1) please don't post support requests in General Chat.
2) I've moved this to LLBLGen Pro Runtime Framework but not sure if this is about our framework or e.g. Entity Framework as you post a poco class and our runtime doesn't support pocos
So a bit more information is required to answer your question.
-
Whoops sorry my error.
-
It's true LLBLGen doesn't support Poco's I didn't want to write out the entire entity class.
I'm encountering a scenario where I need a specific entity column to always be updated, regardless of whether its value changes. The current behavior of the framework doesn't mark an entity field as 'dirty' or 'changed' if the new value assigned is the same as the existing value. While this optimization might be beneficial in most cases, it creates challenges for our specific use case. In our project, we're working with a substantial code base that, admittedly, does not always follow ideal architectural practices which is an important part of the challenge we're currently facing.
To illustrate, consider 2 related properties eg. StartDate and EndDate (other situations exist) of an entity. Even when any of the dates is set to the same value it already holds, we need it to be treated as updated when Save/SaveAsync is invoked. This is crucial because the current behavior can lead to inconsistencies in our system that aren't always manageable through database constraints alone.
Is there a way to override or customize this behavior within LLBLGen? Specifically, we're looking for a method to flag certain entity fields so that they're always updated in the database, irrespective of value changes. Any guidance or workarounds to achieve this would be greatly appreciated.