Hi there,
When I add a new Checkbox (boolean) field to a user in the control panel, it's created as a nullable bit in the database.
However, when saving that field for the user, it's actually required to provide a value; we have to set it to true or false or we get an error when saving the user through the API. For the backend this doesn't seem to be an issue as it assumes "false" for an unchecked checkbox. It turns out that we can set it to DBNull.Value as well which is then stored as a null in the database.
Is this a bug? Should it work with proper .NET nulls instead? It feels that using DBNull.Value is a little close to the database and a bit counterintuitive.
Thanks!
Imar