Skip to content

Instantly share code, notes, and snippets.

View deccer's full-sized avatar
👾

deccer

👾
  • Sol
View GitHub Profile
@nphmuller
nphmuller / MyDbContext.cs
Last active January 13, 2025 13:45
CombineQueryFilers
public class MyDbContext : DbContext
{
private ITenantIdLocator tenantIdLocator;
public MyDbContext(ITenantIdLocator tenantIdLocator)
{
if (tenantIdLocator == null) throw new ArgumentNullException(nameof(tenantIdLocator));
this.tenantId = tenantIdLocator.GetTenantId();
}