This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UserService | |
{ | |
private readonly IUserRepo _repo; | |
public UserService(IUserRepo repo) | |
{ | |
_repo = repo; | |
} | |
public async Task<bool> DoesUserExist(int userId) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
var connectionString = Configuration["ApplicationDbContext:ConnectionString"]; | |
services.AddDbContext<ApplicationDbContext>( | |
opts => opts.UseNpgsql(connectionString) | |
); | |
services.Configure<MultitenancyOptions>( | |
options => | |
{ |