Skip to content

Commit fe91b7e

Browse files
committed
.
1 parent 9fe3463 commit fe91b7e

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

readme.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ var application = webApplicationBuilder.Build();
328328
application.UseDelta(
329329
getConnection: httpContext => httpContext.RequestServices.GetRequiredService<SqlConnection>());
330330
```
331-
<sup><a href='/src/DeltaTests/Usage.cs#L298-L304' title='Snippet source file'>snippet source</a> | <a href='#snippet-CustomDiscoveryConnection' title='Start of snippet'>anchor</a></sup>
331+
<sup><a href='/src/DeltaTests/Usage.cs#L295-L301' title='Snippet source file'>snippet source</a> | <a href='#snippet-CustomDiscoveryConnection' title='Start of snippet'>anchor</a></sup>
332332
<!-- endSnippet -->
333333

334334
To use custom connection and transaction discovery:
@@ -346,7 +346,7 @@ webApplication.UseDelta(
346346
return new(sqlConnection, sqlTransaction);
347347
});
348348
```
349-
<sup><a href='/src/DeltaTests/Usage.cs#L309-L321' title='Snippet source file'>snippet source</a> | <a href='#snippet-CustomDiscoveryConnectionAndTransaction' title='Start of snippet'>anchor</a></sup>
349+
<sup><a href='/src/DeltaTests/Usage.cs#L306-L318' title='Snippet source file'>snippet source</a> | <a href='#snippet-CustomDiscoveryConnectionAndTransaction' title='Start of snippet'>anchor</a></sup>
350350
<!-- endSnippet -->
351351

352352

@@ -533,7 +533,7 @@ Nuget: [Delta.SqlServer](https://www.nuget.org/packages/Delta.SqlServer)
533533
```cs
534534
var timeStamp = await sqlConnection.GetLastTimeStamp();
535535
```
536-
<sup><a href='/src/DeltaTests/Usage.cs#L154-L158' title='Snippet source file'>snippet source</a> | <a href='#snippet-GetLastTimeStampSqlConnection' title='Start of snippet'>anchor</a></sup>
536+
<sup><a href='/src/DeltaTests/Usage.cs#L153-L157' title='Snippet source file'>snippet source</a> | <a href='#snippet-GetLastTimeStampSqlConnection' title='Start of snippet'>anchor</a></sup>
537537
<!-- endSnippet -->
538538

539539

@@ -561,7 +561,7 @@ foreach (var db in trackedDatabases)
561561
Trace.WriteLine(db);
562562
}
563563
```
564-
<sup><a href='/src/DeltaTests/Usage.cs#L196-L204' title='Snippet source file'>snippet source</a> | <a href='#snippet-GetDatabasesWithTracking' title='Start of snippet'>anchor</a></sup>
564+
<sup><a href='/src/DeltaTests/Usage.cs#L193-L201' title='Snippet source file'>snippet source</a> | <a href='#snippet-GetDatabasesWithTracking' title='Start of snippet'>anchor</a></sup>
565565
<!-- endSnippet -->
566566

567567
Uses the following SQL:
@@ -591,7 +591,7 @@ foreach (var db in trackedTables)
591591
Trace.WriteLine(db);
592592
}
593593
```
594-
<sup><a href='/src/DeltaTests/Usage.cs#L222-L230' title='Snippet source file'>snippet source</a> | <a href='#snippet-GetTrackedTables' title='Start of snippet'>anchor</a></sup>
594+
<sup><a href='/src/DeltaTests/Usage.cs#L219-L227' title='Snippet source file'>snippet source</a> | <a href='#snippet-GetTrackedTables' title='Start of snippet'>anchor</a></sup>
595595
<!-- endSnippet -->
596596

597597
Uses the following SQL:
@@ -616,7 +616,7 @@ Determine if change tracking is enabled for a database.
616616
```cs
617617
var isTrackingEnabled = await sqlConnection.IsTrackingEnabled();
618618
```
619-
<sup><a href='/src/DeltaTests/Usage.cs#L287-L291' title='Snippet source file'>snippet source</a> | <a href='#snippet-IsTrackingEnabled' title='Start of snippet'>anchor</a></sup>
619+
<sup><a href='/src/DeltaTests/Usage.cs#L284-L288' title='Snippet source file'>snippet source</a> | <a href='#snippet-IsTrackingEnabled' title='Start of snippet'>anchor</a></sup>
620620
<!-- endSnippet -->
621621

622622
Uses the following SQL:
@@ -643,7 +643,7 @@ Enable change tracking for a database.
643643
```cs
644644
await sqlConnection.EnableTracking();
645645
```
646-
<sup><a href='/src/DeltaTests/Usage.cs#L281-L285' title='Snippet source file'>snippet source</a> | <a href='#snippet-EnableTracking' title='Start of snippet'>anchor</a></sup>
646+
<sup><a href='/src/DeltaTests/Usage.cs#L278-L282' title='Snippet source file'>snippet source</a> | <a href='#snippet-EnableTracking' title='Start of snippet'>anchor</a></sup>
647647
<!-- endSnippet -->
648648

649649
Uses the following SQL:
@@ -671,7 +671,7 @@ Disable change tracking for a database and all tables within that database.
671671
```cs
672672
await sqlConnection.DisableTracking();
673673
```
674-
<sup><a href='/src/DeltaTests/Usage.cs#L266-L270' title='Snippet source file'>snippet source</a> | <a href='#snippet-DisableTracking' title='Start of snippet'>anchor</a></sup>
674+
<sup><a href='/src/DeltaTests/Usage.cs#L263-L267' title='Snippet source file'>snippet source</a> | <a href='#snippet-DisableTracking' title='Start of snippet'>anchor</a></sup>
675675
<!-- endSnippet -->
676676

677677
Uses the following SQL:
@@ -708,7 +708,7 @@ Enables change tracking for all tables listed, and disables change tracking for
708708
```cs
709709
await sqlConnection.SetTrackedTables(["Companies"]);
710710
```
711-
<sup><a href='/src/DeltaTests/Usage.cs#L216-L220' title='Snippet source file'>snippet source</a> | <a href='#snippet-SetTrackedTables' title='Start of snippet'>anchor</a></sup>
711+
<sup><a href='/src/DeltaTests/Usage.cs#L213-L217' title='Snippet source file'>snippet source</a> | <a href='#snippet-SetTrackedTables' title='Start of snippet'>anchor</a></sup>
712712
<!-- endSnippet -->
713713

714714
Uses the following SQL:

src/DeltaTests/Usage.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ public async Task GetLastTimeStampSqlServer()
157157
#endregion
158158

159159
IsNotNull(timeStamp);
160+
IsNotEmpty(timeStamp);
160161
}
161162

162163
[Test]

0 commit comments

Comments
 (0)