2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-26 21:13:13 +00:00

Generic Record/Resource

This commit is contained in:
2022-06-06 23:19:23 +03:00
parent 499f1e37d2
commit fbae3eb960
4 changed files with 27 additions and 10 deletions

View File

@ -54,6 +54,9 @@ public static class EsiurExtensions
{
var store = dbSet.GetInfrastructure().GetService<IDbContextOptions>().FindExtension<EsiurExtensionOptions>().Store;
if (store == null)
throw new Exception("Store not set, please call 'UseEsiur' on your DbContextOptionsBuilder.");
if (!store.Initialized)
throw new Exception("Store not initialized. Make sure the Warehouse is open");