1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using Microsoft.Extensions.DependencyInjection;
- using Microsoft.Extensions.Configuration;
- using MTWorkHR.Infrastructure.EmailService;
- using MTWorkHR.Infrastructure.Logging;
- using MTWorkHR.Core.Global;
- using Microsoft.AspNetCore.Identity;
- using Microsoft.EntityFrameworkCore;
- using MTWorkHR.Core.IRepositories.Base;
- using MTWorkHR.Core.IRepositories;
- using MTWorkHR.Core.UnitOfWork;
- using MTWorkHR.Infrastructure.Data;
- using MTWorkHR.Infrastructure.Repositories;
- using MTWorkHR.Infrastructure.UnitOfWorks;
- using MTWorkHR.Core.Email;
- namespace MTWorkHR.Infrastructure
- {
- public static class InfrastructureServiceRegistration
- {
- public static IServiceCollection AddInfrastructureServices (this IServiceCollection services, AppSettingsConfiguration configuration){
- services.AddDbContext<HRDataContext>(options => {
- options.UseSqlServer(configuration.ConnectionStrings.MTWorkHRConnectionString);
- });
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- return services;
- }
- }
- }
|