Skip to content

Query returns no results and NullReferenceException #920

@Hulkstance

Description

@Hulkstance

Environment Details

  • Finbuckle.MultiTenant Version: 9.0.0
  • EF Core Version: 9.0.0
  • Database Provider: SQL Server
  • .NET Version: .NET 9

Description

I'm implementing a shared database multi-tenancy sample project using the Finbuckle.MultiTenant library (GitHub). While setting it up, I encountered the following two issues:


Issue 1: Query Returns No Results

Despite having companies populated for a valid tenant (e.g. tenant1), no data is returned from the queries. Here are some screenshots for context:

image

image


Issue 2: NullReferenceException for Invalid Tenant

When an invalid tenant identifier (e.g. asd) is passed, the application throws a NullReferenceException.

Screenshot:

image


Any thoughts on these issues? I could've debugged the source code myself, but I feel it’s better to ask this question at this point, as the documentation is somewhat outdated or limited in certain areas. I’d appreciate feedback on whether my implementation aligns with the intended usage.

Source Code

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