corvus-dotnet / Corvus.Tenancy

Multi-tenancy support. Sponsored by endjin.
Apache License 2.0
3 stars 1 forks source link

Add a provider for a tenanted SqlConnection. #62

Open mwadams opened 4 years ago

mwadams commented 4 years ago

Use the standard configuration mechanism to get a SqlConnection for a tenanted SQL database instance.

mwadams commented 4 years ago

Note that this provides the low-level "give me a SqlConnection for a database of this name, for this tenant" functionality. It doesn't have any notion of the access control around that (e.g. RLS for the given principal) - that's for your own application design.

mwadams commented 4 years ago

This is being done as a prerequisite for https://github.com/marain-dotnet/Marain.Workflow/issues/40