How can I update all rows to null using FluentMigrator fluent syntax? You cannot assign null to anonymous type property.
Update.Table("mytable").Set(new { supplierid = null }).AllRows();
I found the answer to my question. You must use DBNull.Value
.
Update.Table("mytable").Set(new { supplierid = DBNull.Value }).AllRows();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With