dal + other
This commit is contained in:
22
PARR.DAL/ParrDalInstaller.cs
Normal file
22
PARR.DAL/ParrDalInstaller.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using PARR.DAL.Context;
|
||||
|
||||
namespace PARR.DAL
|
||||
{
|
||||
public static class ParrDalInstaller
|
||||
{
|
||||
public static void InstallDalServices(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
services.AddDbContext<DataContext>(opt =>
|
||||
opt.UseNpgsql(configuration.GetConnectionString("DefaultConnection"))
|
||||
);
|
||||
|
||||
//services.AddTransient<ILayerService, LayerService>();
|
||||
//services.AddTransient<IUsersInLayersService, UsersInLayersService>();
|
||||
//services.AddTransient<IAreaService, AreaService>();
|
||||
//services.AddTransient<IAreasInLayerService, AreasInLayerService>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user