WIP dependency Injection
This commit is contained in:
16
DaSaSo.ConsoleApp/Program.cs
Normal file
16
DaSaSo.ConsoleApp/Program.cs
Normal 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",
|
||||
});
|
||||
Reference in New Issue
Block a user