начало работы
This commit is contained in:
parent
dff96e44cf
commit
ae85d1eea3
@ -32,4 +32,10 @@
|
|||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Update="appsettings.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
@ -29,6 +29,8 @@ namespace ITServiceManager
|
|||||||
container.RegisterType<IEmployeeRepository, EmployeeRepository>();
|
container.RegisterType<IEmployeeRepository, EmployeeRepository>();
|
||||||
container.RegisterType<ICompanyRepository, CompanyRepository>();
|
container.RegisterType<ICompanyRepository, CompanyRepository>();
|
||||||
|
|
||||||
|
container.RegisterType<IConnectionString, ConnectionString>();
|
||||||
|
|
||||||
return container;
|
return container;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace ITServiceManager.Repositories;
|
||||||
|
|
||||||
|
public interface IConnectionString
|
||||||
|
{
|
||||||
|
public string ConnectionString { get; }
|
||||||
|
}
|
@ -4,6 +4,12 @@ namespace ITServiceManager.Repositories.Implementations;
|
|||||||
|
|
||||||
public class CompanyRepository : ICompanyRepository
|
public class CompanyRepository : ICompanyRepository
|
||||||
{
|
{
|
||||||
|
private readonly IConnectionString _connectionString;
|
||||||
|
|
||||||
|
public CompanyRepository(IConnectionString connectionString)
|
||||||
|
{
|
||||||
|
_connectionString = connectionString;
|
||||||
|
}
|
||||||
public IEnumerable<Company> ReadCompanies()
|
public IEnumerable<Company> ReadCompanies()
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace ITServiceManager.Repositories.Implementations;
|
||||||
|
|
||||||
|
internal class ConnectionString : IConnectionString
|
||||||
|
{
|
||||||
|
string IConnectionString.ConnectionString => "";
|
||||||
|
}
|
3
ITServiceManager/ITServiceManager/appsettings.json
Normal file
3
ITServiceManager/ITServiceManager/appsettings.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user