What is the most effective way to use null value in SQLite database treated as zero value in .NET calculations? I use Entity Framework.
Let's say I have:
Dim result as Double
result = e_employee_salary * e_index
where e_employee_salary and e_index and fields in the SQLite database but one or both of them can be null and in that case I want to treat them as zero value in the above calculation.
I'm looking the most effective way to do that since these calculations appear in many property getters all over and are called with high frequencies.