WPF hinzugefügt
This commit is contained in:
20
Mappings/KernelInitializer.cs
Normal file
20
Mappings/KernelInitializer.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using DataStoring.Contract;
|
||||
using DataStoring.EfCore;
|
||||
using DichtheitManagement;
|
||||
using DichtheitManagement.Contract;
|
||||
using Ninject;
|
||||
using System;
|
||||
|
||||
namespace Mappings
|
||||
{
|
||||
public class KernelInitializer
|
||||
{
|
||||
public void Initialize(IKernel kernel)
|
||||
{
|
||||
kernel.Bind<DPContext>().ToSelf();
|
||||
kernel.Bind(typeof(IRepository<>)).To(typeof(Repository<>));
|
||||
kernel.Bind<IAuftraggeberManager>().To<AuftraggeberManager>();
|
||||
kernel.Bind<IBaustelleManager>().To<BaustelleManager>();
|
||||
}
|
||||
}
|
||||
}
|
||||
19
Mappings/Mappings.csproj
Normal file
19
Mappings/Mappings.csproj
Normal file
@@ -0,0 +1,19 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Ninject" Version="3.3.4" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DataStoring.Contract\DataStoring.Contract.csproj" />
|
||||
<ProjectReference Include="..\DataStoring.CSV\DataStoring.CSV.csproj" />
|
||||
<ProjectReference Include="..\DataStoring.EfCore\DataStoring.EfCore.csproj" />
|
||||
<ProjectReference Include="..\DichtheitManagement.Contract\DichtheitManagement.Contract.csproj" />
|
||||
<ProjectReference Include="..\DichtheitManagement\DichtheitManagement.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user