question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Finbuckle.MultiTenant 6.3.0 Released

See original GitHub issue

Hello, version 6.3.0 is now available on NuGet.

First, a big THANK YOU!!! to my sponsors @cpcrook, @renhammington, @project-bi, and @hasansan07!

If you want to support this project please check out the sponsor button above. Every little bit helps.

This release is mostly bug fixes to clean things up before .NET 6 is released. Thanks to @lahma, @mphill, and @Nivalux for their help with some of the items below.

6.3.0

  • Removed support for .NET Core 2.1 which ended Microsoft support in August 2020.
  • Retargeted specifically to .netcoreapp3.1 and .net5.0 across all packages.
  • Added AdjustKey, AdjustIndex, AdjustAlIndexes, AdjustUniqueIndexes methods to be chained off IsMultiTenant in EFCore functionality. They add the implicit TenantId to the respective key/indexes.
  • Reverted generic version of IsMultiTenant back to non-generic version for more flexibility.
  • Improved tenant resolution logging functionality and performance. Thanks to @lahma!
  • Fixed a bug with InMemoryStore implementation of TryUpdate. Thanks to @mphill!
  • Fixed a bug where ConfigurationStore would throw an exception if there was no default section in the config.
  • Fixed a bug where ASP.NET Core Identity security stamp validation would force user logout and raise exceptions. Thanks to @Nivalux for finding the root cause of this bug.
  • Fixed a bug where MultiTenantOptionsManager<TOptions> was internal instead of public.
  • Fixed problematic references in sample projects.
  • Updated and improved documentation.
  • Updated and improved tests.
  • Added various project files for .NET Foundation on-boarding.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
snax4acommented, Apr 21, 2022

@AndrewTriesToCode I am configuring entities in separated classes implementing IEntityTypeConfiguration<TEntity>

public class GroupConfig : IEntityTypeConfiguration<Group>
{
    public void Configure(EntityTypeBuilder<Group> builder)
    {
        var key = builder.Metadata.GetKeys().First();
        builder.IsMultiTenant().AdjustKey(key, builder).AdjustIndexes(); // builder parameter has wrong type
        builder.Property(g => g.Name).HasMaxLength(32);
        builder.HasIndex(g => new { g.Name, g.CreatedBy });
    }
}

I would like to use AdjustKey in this configuration but this method expects EntityFrameworkCore.ModelBuilder instead of EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder

Do you have any suggestion how can I get ModelBuilder here?

0reactions
stale[bot]commented, Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Version History
6.3.0. Removed support for .NET Core 2.1 which ended Microsoft support in August 2020. Retargeted specifically to .netcoreapp3.1 and .net5.0 ...
Read more >
Releases · Finbuckle/Finbuckle.MultiTenant
Finbuckle.MultiTenant is an open-source multitenancy middleware library for .NET. It enables tenant resolution, per-tenant app behavior, ...
Read more >
Finbuckle.MultiTenant 6.11.1
Main library package for Finbuckle.MultiTenant. ... Versions Compatible and additional computed target framework versions. ... net6.0 net6.0 is compatible. net6.0- ...
Read more >
Finbuckle.MultiTenant.EntityFrameworkCore 6.11.1
MultiTenant is an open-source multitenancy middleware library for .NET. It enables tenant resolution, per-tenant app behavior, and per-tenant data isolation.
Read more >
Finbuckle.MultiTenant
MultiTenant is an open-source multitenancy middleware library for .NET. It enables tenant resolution, per-tenant app behavior, and per-tenant data isolation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found