Generic Record/Resource

This commit is contained in:
ahmed committed 2022-06-06 23:19:23 +03:00
1 parent 499f1e37d2
commit fbae3eb960
4 files changed
+27 -10

No files matched your search

@@ -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");