Docs changes
This commit is contained in:
Родитель
1afaaa3adc
Коммит
7ac6aab88c
30
readme.md
30
readme.md
|
@ -29,7 +29,7 @@ Part of the <a href='https://dotnetfoundation.org' alt=''>.NET Foundation</a>
|
|||
* [Queryable](#queryable)
|
||||
* [EF Core](#ef-core-1)
|
||||
* [EF Classic](#ef-classic-1)
|
||||
* [Security contact information](#security-contact-information)<!-- endtoc -->
|
||||
* [Security contact information](#security-contact-information)<!-- endToc -->
|
||||
|
||||
|
||||
## NuGet package
|
||||
|
@ -51,7 +51,7 @@ Enable VerifyEntityFramewok once at assembly load time:
|
|||
VerifyEntityFramework.Enable();
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.cs#L234-L238' title='File snippet `enablecore` was extracted from'>snippet source</a> | <a href='#snippet-enablecore' title='Navigate to start of snippet `enablecore`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
|
||||
### EF Classic
|
||||
|
@ -62,7 +62,7 @@ VerifyEntityFramework.Enable();
|
|||
VerifyEntityFrameworkClassic.Enable();
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.cs#L139-L143' title='File snippet `enableclassic` was extracted from'>snippet source</a> | <a href='#snippet-enableclassic' title='Navigate to start of snippet `enableclassic`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
|
||||
### Recording
|
||||
|
@ -83,7 +83,7 @@ builder.EnableRecording();
|
|||
var data = new SampleDbContext(builder.Options);
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.cs#L154-L161' title='File snippet `enablerecording` was extracted from'>snippet source</a> | <a href='#snippet-enablerecording' title='Navigate to start of snippet `enablerecording`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
#### Usage
|
||||
|
||||
|
@ -118,7 +118,7 @@ public async Task Recording()
|
|||
}
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.cs#L196-L220' title='File snippet `recording` was extracted from'>snippet source</a> | <a href='#snippet-recording' title='Navigate to start of snippet `recording`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
Will result in the following verified file:
|
||||
|
||||
|
@ -135,7 +135,7 @@ WHERE [c].[Content] = N'Title'"
|
|||
]
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.Recording.verified.txt#L1-L8' title='File snippet `CoreTests.Recording.verified.txt` was extracted from'>snippet source</a> | <a href='#snippet-CoreTests.Recording.verified.txt' title='Navigate to start of snippet `CoreTests.Recording.verified.txt`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
|
||||
### ChangeTracking
|
||||
|
@ -165,7 +165,7 @@ public async Task Added()
|
|||
}
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.cs#L12-L28' title='File snippet `added` was extracted from'>snippet source</a> | <a href='#snippet-added' title='Navigate to start of snippet `added`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
Will result in the following verified file:
|
||||
|
||||
|
@ -182,7 +182,7 @@ Will result in the following verified file:
|
|||
}
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.Added.verified.txt#L1-L8' title='File snippet `CoreTests.Added.verified.txt` was extracted from'>snippet source</a> | <a href='#snippet-CoreTests.Added.verified.txt' title='Navigate to start of snippet `CoreTests.Added.verified.txt`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
|
||||
#### Deleted entity
|
||||
|
@ -207,7 +207,7 @@ public async Task Deleted()
|
|||
}
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.cs#L30-L46' title='File snippet `deleted` was extracted from'>snippet source</a> | <a href='#snippet-deleted' title='Navigate to start of snippet `deleted`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
Will result in the following verified file:
|
||||
|
||||
|
@ -223,7 +223,7 @@ Will result in the following verified file:
|
|||
}
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.Deleted.verified.txt#L1-L7' title='File snippet `CoreTests.Deleted.verified.txt` was extracted from'>snippet source</a> | <a href='#snippet-CoreTests.Deleted.verified.txt' title='Navigate to start of snippet `CoreTests.Deleted.verified.txt`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
|
||||
#### Modified entity
|
||||
|
@ -251,7 +251,7 @@ public async Task Modified()
|
|||
}
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.cs#L48-L67' title='File snippet `modified` was extracted from'>snippet source</a> | <a href='#snippet-modified' title='Navigate to start of snippet `modified`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
Will result in the following verified file:
|
||||
|
||||
|
@ -271,7 +271,7 @@ Will result in the following verified file:
|
|||
}
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.Modified.verified.txt#L1-L11' title='File snippet `CoreTests.Modified.verified.txt` was extracted from'>snippet source</a> | <a href='#snippet-CoreTests.Modified.verified.txt' title='Navigate to start of snippet `CoreTests.Modified.verified.txt`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
|
||||
### Queryable
|
||||
|
@ -292,7 +292,7 @@ public async Task Queryable()
|
|||
}
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.cs#L128-L140' title='File snippet `queryable` was extracted from'>snippet source</a> | <a href='#snippet-queryable' title='Navigate to start of snippet `queryable`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
Will result in the following verified file:
|
||||
|
||||
|
@ -307,7 +307,7 @@ FROM [Companies] AS [c]
|
|||
WHERE [c].[Content] = N'value'
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFramework.Tests/CoreTests.Queryable.verified.txt#L1-L3' title='File snippet `CoreTests.Queryable.verified.txt` was extracted from'>snippet source</a> | <a href='#snippet-CoreTests.Queryable.verified.txt' title='Navigate to start of snippet `CoreTests.Queryable.verified.txt`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
|
||||
### EF Classic
|
||||
|
@ -322,7 +322,7 @@ SELECT
|
|||
WHERE N'value' = [Extent1].[Content]
|
||||
```
|
||||
<sup><a href='/src/Verify.EntityFrameworkClassic.Tests/ClassicTests.Queryable.verified.txt#L1-L5' title='File snippet `ClassicTests.Queryable.verified.txt` was extracted from'>snippet source</a> | <a href='#snippet-ClassicTests.Queryable.verified.txt' title='Navigate to start of snippet `ClassicTests.Queryable.verified.txt`'>anchor</a></sup>
|
||||
<!-- endsnippet -->
|
||||
<!-- endSnippet -->
|
||||
|
||||
|
||||
## Security contact information
|
||||
|
|
Загрузка…
Ссылка в новой задаче