Add project files.

This commit is contained in:
2021-05-09 22:10:25 +02:00
parent f20ba23e7b
commit f8c472a4cd
70 changed files with 6207 additions and 0 deletions

View File

@ -0,0 +1,15 @@
using DataDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StockDAL.Interface
{
public interface IAddressRepository
{
Address GetAddressById(int AddressId);
Address SaveAddress(Address address);
}
}

View File

@ -0,0 +1,16 @@
using DataDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StockDAL.Interface
{
public interface IBackupRepository
{
IEnumerable<BackupRegister> GetAllBackupRegisters();
BackupRegister GetBackupRegisterById(int brId);
BackupRegister SaveBackupReging(BackupRegister backupRegister);
}
}

View File

@ -0,0 +1,16 @@
using DataDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StockDAL.Interface
{
public interface IPersonRepository
{
IEnumerable<Person> GetAllOwners();
Person GetPersonById(int personId);
Person SavePerson(Person person);
}
}

View File

@ -0,0 +1,20 @@
using DataDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StockDal.Interface
{
public interface IStockMarketRepository
{
Dictionary<string, DiTraderStockRow> StockMarketList { get; set; }
bool ViewBrowser { get; set; }
void Clean();
void LoadStockMarketList();
void LoadStockMarketList(bool viewBrowser);
void RefreshMarketList();
}
}

View File

@ -0,0 +1,17 @@
using DataDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StockDAL.Interface
{
public interface IStockPersonConnect
{
IEnumerable<PersonStock> GetAllConnectedStocks();
IEnumerable<PersonStock> GetAllConnectionsByPersId(int personId);
void RemoveConnectedShare(PersonStock personStock);
PersonStock SavePersonStockConnection(PersonStock personStock);
}
}

View File

@ -0,0 +1,21 @@
using DataDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StockDAL.Interface
{
public interface IStockRepository
{
IEnumerable<StockMember> GetAllRemainingStocks();
IEnumerable<StockMember> GetAllStocks();
void InsertMany(List<StockMember> stockMembers);
void RemoveAllStocks();
void RestoreStockMembers(List<StockMember> stockMembers);
void SaveStockMember(StockMember stockMember);
void UpdateActualForSell(int id, int sellAmount, decimal sellPrice, DateTime sellDate);
void UpdateActualPrice(int id, decimal price);
}
}

View File

@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HtmlAgilityPack" Version="1.11.33" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="90.0.4430.2400" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DataDomain\DataDomain.csproj" />
</ItemGroup>
</Project>