You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using Microsoft.EntityFrameworkCore.Internal;
-
- namespace Cap.Consistency.EntityFrameworkCore.Test
- {
- public class ScratchDatabaseFixture : IDisposable
- {
- private LazyRef<SqlServerTestStore> _testStore;
-
- public ScratchDatabaseFixture() {
- _testStore = new LazyRef<SqlServerTestStore>(() => SqlServerTestStore.CreateScratch());
- }
-
- public string ConnectionString => _testStore.Value.Connection.ConnectionString;
-
- public void Dispose() {
- if (_testStore.HasValue) {
- _testStore.Value?.Dispose();
- }
- }
- }
- }
|