Wow… I have no clue how to explain this. Excuse my vocabulary.
Their is one field in my DB that I want to test if it is null before
someone accesses it and if it is null return zero. How to I overwrite
the accessor for a field in my model so that I can test the value
being returned and if it is null return zero, otherwise return what
the value is?
Why am I doing this? Because unfortunately the data I am accessing is
from legacy systems so I can’t make sure that all the information has
been cleaned up before hand! Plus the bozzo who is writing the tool
to populate my DB from legacy systems refuses to clean data before he
puts it into my DB! Garbage in… garbage out!
Am I making sense? How would I better describe what I am trying to do?