WIP dependency Injection

This commit is contained in:
HuskyTeufel
2021-09-13 15:37:23 +02:00
parent 70fcb1711d
commit 12652b3fa3
96 changed files with 4836 additions and 505 deletions

View File

@@ -0,0 +1,16 @@
// See https://aka.ms/new-console-template for more information
using DaSaSo.Domain.Model;
using DaSaSo.Domain.Service;
using DaSaSo.EntityFramework;
using DaSaSo.EntityFramework.Services;
using System.Diagnostics;
IDataService<Client> clientService = new GenericDataService<Client>(new DaSaSoDbContextFactory());
clientService.Create(new Client()
{
Firstname = "Cynthia",
LastName = "Schreuder",
Country = "Tarmstedt",
Postcode = "25445",
});