Add project files.

This commit is contained in:
2022-05-26 15:19:31 +02:00
parent 44afa68e45
commit a57dcfe03b
57 changed files with 1907 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\OemanTrader.Domain\OemanTrader.Domain.csproj" />
<ProjectReference Include="..\OemanTrader.EntityFramework\OemanTrader.EntityFramework.csproj" />
</ItemGroup>
</Project>

9
ConsoleApp1/Program.cs Normal file
View File

@ -0,0 +1,9 @@
// See https://aka.ms/new-console-template for more information
using OemanTrader.Domain.Models;
using OemanTrader.Domain.Services;
using OemanTrader.EntityFramework;
using OemanTrader.EntityFramework.Services;
IDataService<User> userService = new GenericDataService<User>(new OemanTraderDbContextFactory());
userService.Create(new User { UserName = "Test" }).Wait();