Skip to content

Documentation is missing information on how to set up database users and rights #26126

@SetTrend

Description

@SetTrend

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions