| 123456789101112131415161718 |
- using Microsoft.EntityFrameworkCore;
- using System.Diagnostics;
- namespace Quadarax.Application.QLiberace.Base.Tests
- {
- public class BaseInMemoryDbContext : QlbrcDbContext
- {
- protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
- {
- var dbName = "test" + DateTime.Now.ToFileTime().ToString();
- optionsBuilder.UseInMemoryDatabase(dbName)
- .LogTo(message => Debug.WriteLine("EFSQL>>" + message));
- Debug.WriteLine($"*** {GetType().Name} - Context created [{dbName}]");
- }
- }
- }
|