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,43 @@
using Microsoft.Extensions.DependencyInjection;
using SqliteBackups;
using SqliteBackups.Interfaces;
using StockBL;
using StockBL.Interface;
using StockDal;
using StockDal.Interface;
using StockDAL;
using StockDAL.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StockInfoCore
{
public static class StockInfoDISetup
{
public static IServiceCollection AddDIInfo(this IServiceCollection services)
{
services.AddTransient<IBackupRepository, BackupRepository>();
services.AddTransient<IBackupRoutines, BackupRoutines>();
services.AddTransient<IStockRepository, StockRepository>();
services.AddTransient<IStockMarketRepository,StockMarketRepository>();
services.AddTransient<IPersonRepository,PersonRepository>();
services.AddTransient<IAddressRepository,AddressRepository>();
services.AddTransient<IStockPersonConnect,StockPersonConnect>();
services.AddTransient<IPersonStockFacade,PersonStockFacade>();
services.AddTransient<frmBackup>();
services.AddTransient<frmRegisterStock>();
services.AddTransient<frmMyStocks>();
services.AddTransient<frmSelling>();
services.AddTransient<frmPerson>();
services.AddTransient<frmPersonShareConnect>();
services.AddTransient<frmInitial>();
return services;
}
}
}