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

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

View File

@ -1,17 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RepositoryPattern
{
public class Product
{
public string ProductId { get; set; }
public string ProductName { get; set; }
public decimal UnitPrice { get; set; }
public string Barcode { get; set; }
public int UnitsInStock { get; set; }
}
}

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>