Skip to content

Commit 3258178

Browse files
authored
1 parent 1139dc0 commit 3258178

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/fluent-interface.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ If you want to insert a string as non-Unicode (ANSI) then use the NonUnicodeStri
115115
Insert.IntoTable("TestTable").Row(new { Name = new NonUnicodeString("ansi string") });
116116
```
117117

118-
## AllRows Attribute
118+
## `AllRows()` Method
119119

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' 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:
121121

122122
1. Add new nullable column.
123123
```cs
@@ -126,7 +126,7 @@ Alter.Table("Bar")
126126
.AsDateTime()
127127
.Nullable();
128128
```
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.
130130
```cs
131131
Update.Table("Bar")
132132
.Set(new { SomeDate = DateTime.Today })
@@ -140,8 +140,9 @@ Alter.Table("Bar")
140140
.NotNullable();
141141
```
142142

143+
### `SetExistingRowsTo` alternative to AllRows()`
143144

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.
145146

146147
```cs
147148
Alter.Table("Bar")

0 commit comments

Comments
 (0)