Skip to content

Commit b354838

Browse files
committedApr 21, 2024
feat: namespace cleaned up
BREAKING CHANGE: Many namespaces have been updated for consistency. Most code will only need to reference the `Finbuckle.MultiTenant` namespace.
1 parent f4e20db commit b354838

File tree

93 files changed

+761
-778
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+761
-778
lines changed
 

‎docs/CoreConcepts.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ type parameter defines the`ITenantInfo` use throughout the library and app.
1515
crazy symbols in a web app where the identifier will be part of the URL). Unlike `Id`, `Identifier` can be changed if
1616
necessary.
1717
* `Name` is a display name for the tenant.
18-
* `ConnectionString` is a connection string that should be used for database operations for this tenant. It might
19-
connect to a shared database or a dedicated database for the single tenant.
2018

2119
`TenantInfo` is a provided basic implementation of `ITenantInfo` with only the required properties.
2220

2321
An app can define a custom `ITenantInfo` and add custom properties as needed. We recommend keeping these
2422
classes lightweight since they are often queried. Keep heavier associated data in an external area that can be pulled in
2523
when needed via the tenant `Id`.
2624

25+
> Previous versions of `ITenantInfo` and `TenantInfo` included a connection string property. If you still need this
26+
> simply add it to your custom `ITenantInfo` implementation.
27+
2728
## `MultiTenantContext<TTenantInfo>`
2829

2930
The `MultiTenantContext<TTenantInfo>` contains information about the current tenant.

‎src/Finbuckle.MultiTenant.AspNetCore/Extensions/ApplicationBuilderExtensions.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// Copyright Finbuckle LLC, Andrew White, and Contributors.
22
// Refer to the solution LICENSE file for more information.
33

4-
using Finbuckle.MultiTenant.AspNetCore;
4+
using Finbuckle.MultiTenant.AspNetCore.Internal;
5+
using Microsoft.AspNetCore.Builder;
56

6-
// ReSharper disable once CheckNamespace
7-
namespace Microsoft.AspNetCore.Builder;
7+
//ReSharper disable once CheckNamespace
8+
namespace Finbuckle.MultiTenant;
89

910
/// <summary>
1011
/// Extension methods for using Finbuckle.MultiTenant.AspNetCore.

0 commit comments

Comments
 (0)
Please sign in to comment.