Open JamesIlling opened 1 year ago
Why do you need 3 repositories to the same db?
On Tue, Apr 18, 2023 at 1:21 PM JamesIlling @.***> wrote:
when I attempt to use 3 IndexedDBSyncRepository classes all working on the same database then I get
... blazor.webassembly.js:1 System.ArgumentException: An item with the same key has already been added. Key: ... which is occuring in BazorDB.BlazorDbFactory.GetDbManager(String dbName)
This looks to be related to the way we are getting and setting up the Indexed DB manager,
is there a way to support multiple repos accessing the same index db or is it necessary to run multiple dbs?
— Reply to this email directly, view it on GitHub https://github.com/carlfranklin/BlazorRepositoryDemo/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALK4DG4PE3FBEQADFZG5WLXB3ES3ANCNFSM6AAAAAAXC6CXMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I was wanting to keep it to 1 db per application. I am current attempting to refactor to one per type (luckily only 3 ) Still having issues with 3 dbs all still about the GetDbManager method and that a db name is already registered.
when I attempt to use 3 IndexedDBSyncRepository classes all working on the same database then I get
... blazor.webassembly.js:1 System.ArgumentException: An item with the same key has already been added. Key:
...
which is occuring in BazorDB.BlazorDbFactory.GetDbManager(String dbName)
This looks to be related to the way we are getting and setting up the Indexed DB manager,
is there a way to support multiple repos accessing the same index db or is it necessary to run multiple dbs?