Refactor entities into domain project

This commit is contained in:
2021-01-09 17:06:51 +01:00
parent 105fe382bb
commit e8780176e5
7 changed files with 34 additions and 4 deletions

View File

@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30804.86
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RepositoryPattern", "RepositoryPattern\RepositoryPattern.csproj", "{A239AA80-AFE3-4B4B-AC60-C2EF697130C7}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RepositoryPattern", "RepositoryPattern\RepositoryPattern.csproj", "{A239AA80-AFE3-4B4B-AC60-C2EF697130C7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockDomain", "StockDomain\StockDomain.csproj", "{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -15,6 +17,10 @@ Global
{A239AA80-AFE3-4B4B-AC60-C2EF697130C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A239AA80-AFE3-4B4B-AC60-C2EF697130C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A239AA80-AFE3-4B4B-AC60-C2EF697130C7}.Release|Any CPU.Build.0 = Release|Any CPU
{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{25899D94-D35E-44A1-BDD7-BDD5589DB2E0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -1,4 +1,5 @@
using System;
using StockDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

View File

@ -6,6 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper;
using StockDomain;
namespace RepositoryPattern
{

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
@ -12,4 +12,8 @@
<PackageReference Include="System.Data.SqlClient" Version="4.8.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\StockDomain\StockDomain.csproj" />
</ItemGroup>
</Project>

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RepositoryPattern
namespace StockDomain
{
public class Product
{

View File

@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StockDomain
{
class StockMember
{
}
}