<sup><ahref='/src/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>
await using var context = new SampleDbContext(options);
context.Companies.Add(new Company {Content = "before"});
await Verify(context);
}
```
<sup><ahref='/src/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/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>
await using (var context = new SampleDbContext(options))
{
context.Companies.Add(new Company {Content = "before"});
context.SaveChanges();
}
await using (var context = new SampleDbContext(options))
{
var company = context.Companies.Single();
context.Companies.Remove(company);
await Verify(context);
}
}
```
<sup><ahref='/src/Tests/Tests.cs#L24-L43'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/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>
<!-- endsnippet -->
### Modified entry
This test:
<!-- snippet: Modified -->
<aid='snippet-modified'/></a>
```cs
[Fact]
public async Task Modified()
{
var options = DbContextOptions();
await using (var context = new SampleDbContext(options))
await using (var context = new SampleDbContext(options))
{
context.Companies.Single().Content = "after";
await Verify(context);
}
}
```
<sup><ahref='/src/Tests/Tests.cs#L45-L63'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/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/Tests/Tests.cs#L134-L143'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/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>
[Database](https://thenounproject.com/term/database/310841/) designed by [Creative Stall](https://thenounproject.com/creativestall/) from [The Noun Project](https://thenounproject.com/creativepriyanka).