Skip to content

Commit 428f85d

Browse files
committed
EnsureTypeIsCached in GetStoreSchema(Type type)
1 parent a50a2a6 commit 428f85d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Magic.IndexedDb/Helpers/SchemaHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public static List<StoreSchema> GetAllSchemas(string databaseName = null)
7979
/// </summary>
8080
public static StoreSchema GetStoreSchema(Type type)
8181
{
82+
PropertyMappingCache.EnsureTypeIsCached(type);
83+
8284
if (!_schemaCache.TryGetValue(type, out var schemaAttribute) || schemaAttribute == null)
8385
throw new InvalidOperationException($"Type {type.Name} does not have a [MagicTable] attribute.");
8486

0 commit comments

Comments
 (0)