public static void AddTsmDatabase(IServiceCollection services, TsmConfiguration tsmConfiguration) { var ConnectionString = tsmConfiguration.CommanderConnectionString; services.AddDbContext <CommanderDBContext>(options => { options.UseSqlServer(ConnectionString); }); }
public static IServiceCollection AddStartupServices(IServiceCollection services, TsmConfiguration tsmConfiguration) { AddTsmRepositoryServices(services); AddTsmDomainServices(services); AddTsmDatabase(services, tsmConfiguration); AddTsmAutoMapperServices(services); return(services); }