Hi guys,
Is there any good reason NullableType.NullSafeSet is not overridable?
If you look at it - it forwards to NullableType.Set, so yeah, I could override the Set. But the pb is NullableType.NullSafeSet does also a bit more:
Code:
if( value == null )
{ ( ( IDataParameter ) cmd.Parameters[ index ] ).Value = DBNull.Value; }
.... else -> forward to Set
And that's exactly the bit I need to work differently.
Maybe NullableType.NullSafeSet could delegate all processing to Set?
Or be virtual?
Or I just need some sleep?
Tx, Alex