Add project files.
This commit is contained in:
15
ConsoleApp1/ConsoleApp1.csproj
Normal file
15
ConsoleApp1/ConsoleApp1.csproj
Normal 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
9
ConsoleApp1/Program.cs
Normal 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();
|
||||
Reference in New Issue
Block a user