Support is available via a [Tidelift Subscription](https://tidelift.com/subscription/pkg/nuget-verify.entityframework?utm_source=nuget-verify.entityframework&utm_medium=referral&utm_campaign=enterprise).
<sup><ahref='/src/Verify.EntityFramework.Tests/GlobalSetup.cs#L9-L11'title='File snippet `enable` was extracted from'>snippet source</a> | <ahref='#snippet-enable'title='Navigate to start of snippet `enable`'>anchor</a></sup>
<sup><ahref='/src/Verify.EntityFrameworkClassic.Tests/GlobalSetup.cs#L9-L11'title='File snippet `enable` was extracted from'>snippet source</a> | <ahref='#snippet-enable-1'title='Navigate to start of snippet `enable`'>anchor</a></sup>
Added, deleted, and Modified entities can be verified by performing changes on a DbContext and then verifying that context. This approach leverages the [EntityFramework ChangeTracker](https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.changetracking.changetracker).
<sup><ahref='/src/Verify.EntityFramework.Tests/Tests.cs#L12-L22'title='File snippet `added` was extracted from'>snippet source</a> | <ahref='#snippet-added'title='Navigate to start of snippet `added`'>anchor</a></sup>
<sup><ahref='/src/Verify.EntityFramework.Tests/Tests.Added.verified.txt#L1-L8'title='File snippet `Tests.Added.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Added.verified.txt'title='Navigate to start of snippet `Tests.Added.verified.txt`'>anchor</a></sup>
<aid='snippet-Tests.Added.verified.txt-1'/></a>
```txt
{
Added: {
Company: {
Id: 0,
Content: 'before'
}
}
}
```
<sup><ahref='/src/Verify.EntityFrameworkClassic.Tests/Tests.Added.verified.txt#L1-L8'title='File snippet `Tests.Added.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Added.verified.txt-1'title='Navigate to start of snippet `Tests.Added.verified.txt`'>anchor</a></sup>
<sup><ahref='/src/Verify.EntityFramework.Tests/Tests.cs#L24-L38'title='File snippet `deleted` was extracted from'>snippet source</a> | <ahref='#snippet-deleted'title='Navigate to start of snippet `deleted`'>anchor</a></sup>
<sup><ahref='/src/Verify.EntityFramework.Tests/Tests.Deleted.verified.txt#L1-L7'title='File snippet `Tests.Deleted.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Deleted.verified.txt'title='Navigate to start of snippet `Tests.Deleted.verified.txt`'>anchor</a></sup>
<aid='snippet-Tests.Deleted.verified.txt-1'/></a>
```txt
{
Deleted: {
Company: {
Id: 0
}
}
}
```
<sup><ahref='/src/Verify.EntityFrameworkClassic.Tests/Tests.Deleted.verified.txt#L1-L7'title='File snippet `Tests.Deleted.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Deleted.verified.txt-1'title='Navigate to start of snippet `Tests.Deleted.verified.txt`'>anchor</a></sup>
<sup><ahref='/src/Verify.EntityFramework.Tests/Tests.cs#L40-L54'title='File snippet `modified` was extracted from'>snippet source</a> | <ahref='#snippet-modified'title='Navigate to start of snippet `modified`'>anchor</a></sup>
<sup><ahref='/src/Verify.EntityFramework.Tests/Tests.Modified.verified.txt#L1-L11'title='File snippet `Tests.Modified.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Modified.verified.txt'title='Navigate to start of snippet `Tests.Modified.verified.txt`'>anchor</a></sup>
<sup><ahref='/src/Verify.EntityFrameworkClassic.Tests/Tests.Modified.verified.txt#L1-L11'title='File snippet `Tests.Modified.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Modified.verified.txt-1'title='Navigate to start of snippet `Tests.Modified.verified.txt`'>anchor</a></sup>
<sup><ahref='/src/Verify.EntityFramework.Tests/Tests.cs#L114-L123'title='File snippet `queryable` was extracted from'>snippet source</a> | <ahref='#snippet-queryable'title='Navigate to start of snippet `queryable`'>anchor</a></sup>
<sup><ahref='/src/Verify.EntityFramework.Tests/Tests.Queryable.verified.txt#L1-L3'title='File snippet `Tests.Queryable.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Queryable.verified.txt'title='Navigate to start of snippet `Tests.Queryable.verified.txt`'>anchor</a></sup>
<sup><ahref='/src/Verify.EntityFrameworkClassic.Tests/Tests.Queryable.verified.txt#L1-L5'title='File snippet `Tests.Queryable.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Queryable.verified.txt-1'title='Navigate to start of snippet `Tests.Queryable.verified.txt`'>anchor</a></sup>
To report a security vulnerability, use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
[Database](https://thenounproject.com/term/database/310841/) designed by [Creative Stall](https://thenounproject.com/creativestall/) from [The Noun Project](https://thenounproject.com/creativepriyanka).