In real life in legacy databases there are different type of fields used for storing bolean/integers/date values. In my case, I have "bit" and "tinyint" fields with boolean values; "date" and "datetime" fields with just Date values... I can use try_get() method to guess what the actual type inside, but I don't like do so. I like to have automatic casting where it is logically right.
In real life in legacy databases there are different type of fields used for storing bolean/integers/date values. In my case, I have "bit" and "tinyint" fields with boolean values; "date" and "datetime" fields with just Date values... I can use try_get() method to guess what the actual type inside, but I don't like do so. I like to have automatic casting where it is logically right.