d
This commit is contained in:
parent
d381367895
commit
ac8ab62ae9
@ -8,6 +8,6 @@ namespace ShoeStore.Repositories.Implementations;
|
||||
|
||||
internal class ConnectionString : IConnectionString
|
||||
{
|
||||
string IConnectionString.ConnectionString => "Server=localhost;Port=5432;Database=BDOTP;User Id=postgres;Password=postgres;";
|
||||
string IConnectionString.ConnectionString => "Server=localhost;Port=5432;Database=Shoe_store;User Id=postgres;Password=326452ND;";
|
||||
}
|
||||
|
||||
|
@ -35,8 +35,8 @@ internal class ShoesReplenishmentRepository : IShoesReplenishmentRepository
|
||||
connection.Open();
|
||||
using var transaction = connection.BeginTransaction();
|
||||
var queryInsert = @"
|
||||
INSERT INTO ShoesReplenishments (EmployeeId, DateReceipt)
|
||||
VALUES (@EmployeeId, @DateReceipt);
|
||||
INSERT INTO ShoesReplenishments (FactorysId, DateReceipt)
|
||||
VALUES (@FactorysId, @DateReceipt);
|
||||
SELECT MAX(Id) FROM ShoesReplenishments";
|
||||
var shoesReplenishmentId =
|
||||
connection.QueryFirst<int>(queryInsert, shoesReplenishment, transaction);
|
||||
@ -80,7 +80,7 @@ WHERE Id=@id";
|
||||
}
|
||||
}
|
||||
public IEnumerable<ShoesReplenishment> ReadShoesReplenishment(DateTime?
|
||||
dateForm = null, DateTime? dateTo = null, int? shoesId = null, int? employeeId =
|
||||
dateForm = null, DateTime? dateTo = null, int? shoesId = null, int? factorysId =
|
||||
null)
|
||||
{
|
||||
_logger.LogInformation("Получение всех объектов");
|
||||
|
Loading…
x
Reference in New Issue
Block a user