Add project files.
This commit is contained in:
15
StockDal.Interface/IAddressRepository.cs
Normal file
15
StockDal.Interface/IAddressRepository.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
16
StockDal.Interface/IBackupRepository.cs
Normal file
16
StockDal.Interface/IBackupRepository.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
16
StockDal.Interface/IPersonRepository.cs
Normal file
16
StockDal.Interface/IPersonRepository.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
20
StockDal.Interface/IStockMarketRepository.cs
Normal file
20
StockDal.Interface/IStockMarketRepository.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
17
StockDal.Interface/IStockPersonConnect.cs
Normal file
17
StockDal.Interface/IStockPersonConnect.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
21
StockDal.Interface/IStockRepository.cs
Normal file
21
StockDal.Interface/IStockRepository.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
16
StockDal.Interface/StockDAL.Interface.csproj
Normal file
16
StockDal.Interface/StockDAL.Interface.csproj
Normal 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>
|
||||
Reference in New Issue
Block a user