Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • dev-thandabantu 41 posts 321 karma points
    Aug 25, 2022 @ 05:39
    dev-thandabantu
    0

    Best way to connect an existing Umbraco 10 project to another DB

    Hi community :)

    I have a situation where I want my existing Umbraco (v10) project to communicate with other databases. Currently, my Umbraco project is using a SQL DB. I would like to add a couple more SQL DBs (will only be using them for a special kind of authentication and other stuff..).

    Now, I would like some ideas on how best to connect and communicate to these DBs? Thanks!

  • Mario Lopez 168 posts 952 karma points MVP 3x c-trib
    Aug 27, 2022 @ 06:34
    Mario Lopez
    1

    It sounds like you need to create your own repository and service. You could use Entity Framework for example.

  • dev-thandabantu 41 posts 321 karma points
    Sep 11, 2022 @ 14:34
    dev-thandabantu
    100

    I ended up going the route of creating multiple schemas and using Entity Framework Core to perform the DB-first approach to scaffold my model classes and multiple DB contexts.

Please Sign in or register to post replies

Write your reply to:

Draft