Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advice #3

Open
tinmac opened this issue Nov 13, 2023 · 1 comment
Open

Advice #3

tinmac opened this issue Nov 13, 2023 · 1 comment

Comments

@tinmac
Copy link

tinmac commented Nov 13, 2023

Im new to LiteDb & looking to use it in a Winui 3 project. Im wondering, as a single instance is desirable, & the fact that I have six Db services (each similar to the LiteDbWeatherForecastService in your great example) would I be better off creating a single static instance in App constrctor startup and using that in each service or is there another way to do this?

@tinmac
Copy link
Author

tinmac commented Nov 13, 2023

Oh hang on, I see you set it as a singleton! I missed that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant