I am writing data synchronization application between sql server and firebird. In firebird is for historical reason bool provided by domain like ‘Y’ or ‘N’. Now I want to create conversion function(s) between bool and char(1), but it should accept null values.
If input parameter will be bool or string and value from db will be null, it cause a problem right?
How can I do this?
Use Nullable bool?
You can set
later you can check using ?? operator