Skip to content

Possible to insert a null into a database column, using Configuration API? #293

@tekiegirl

Description

@tekiegirl

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);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions