-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Setting up a fresh database installation (using Entity Framework Core EnsureCreated()
), I need to create a number of database users and grant appropriate rights to them for all objects that ModelBuilder
is creating (e.g. entities, sequences etc., but also user permissions, like CREATE SESSION
system privilege).
My goal is to end up with a single DBA user for later database migration and a less privileged application user for running the app.
I've been looking for corresponding ModelBuilder
extension methods, but couldn't find any.
As far as I can see, documentation lacks information on how to create database users and grant privileges using EF Core Code-first.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 1b15cd4c-9cba-c0e2-7618-7d621a3c5936
- Version Independent ID: f4681bc6-57be-6e69-cad9-776ce64d93bd
- Content: Overview of Entity Framework Core - EF Core
- Content Source: entity-framework/core/index.md
- Product: entity-framework
- Technology: entity-framework-core
- GitHub Login: @ajcvickers
- Microsoft Alias: avickers