You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common task is to add a non-nullable column without a default value. One way this can be achieved is with the 'AllRows' attribute, via these three steps:
120
+
A common task is to add a non-nullable column without a default value. One way this can be achieved is with the 'AllRows' method, via these three steps:
121
121
122
122
1. Add new nullable column.
123
123
```cs
@@ -126,7 +126,7 @@ Alter.Table("Bar")
126
126
.AsDateTime()
127
127
.Nullable();
128
128
```
129
-
2. Update all rows to an initial value using the AllRows attribute.
129
+
2. Update all rows to an initial value using the AllRows method.
130
130
```cs
131
131
Update.Table("Bar")
132
132
.Set(new { SomeDate=DateTime.Today })
@@ -140,8 +140,9 @@ Alter.Table("Bar")
140
140
.NotNullable();
141
141
```
142
142
143
+
### `SetExistingRowsTo` alternative to AllRows()`
143
144
144
-
As of version 1.3.0, this can be done with a single statement using the SetExistingRowsTo method.
145
+
As of version 1.3.0, this can be done with a single statement using the `SetExistingRowsTo` method.
0 commit comments