Copied to clipboard

Flag this post as spam?

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


  • Ben Murphy 2 posts 72 karma points
    Jun 04, 2024 @ 09:17
    Ben Murphy
    0

    AddUmbracoDbContext vs AddDbContext - which one is better?

    I am currently building a solution for a client that uses custom tables in the Umbraco database and I have implemented this using EF Core and the standard AddDbContext.

    This is before considering AddUmbracoDbContext. After taking a look at that I am wondering if I need to use AddUmbracoDbContext or if I am safe to use AddDbContext.

    I am only using EF Core to manage data in custom tables and not to interact with the Umbraco tables.

    I have had a look at the code underneath and it seems to be managing locking mechanisms and scopes - is this an issue if I am not interacting with the Umbraco tables?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies