I don't seem to be able to find a way to insert a null into a database column, using the Configuration API. I have some columns that are not always required, so for some logging will be nulls.
The only way I have found to do this is to use a stored procedure, and pass empty strings to it for any nulls. The stored procedure then puts in null whenever there is an empty string.
Could this feature be added in some way? e.g.
var param = new DatabaseParameterInfo();
param.Name = "foo";
param.Layout = null;
target.Parameters.Add(param);