LaaProduction http/sql packages in use. Solution refactored.

This commit is contained in:
Stoyan Zlatev
2023-06-14 15:26:59 +02:00
parent 65261c8ade
commit f04bc95206
52 changed files with 855 additions and 550 deletions
@@ -1,21 +1,20 @@
namespace LaaProductionWeb.Services
{
using FluentSQLClient.Interfaces;
using LaaProductionSQL.Interfaces;
using LaaProductionWeb.Services.Interfaces;
using LaaProductionWeb.Services.Models;
public class ApprovalsService : IApprovalsService
{
private readonly IFluentSQLConnection fluentSQL;
private readonly ISQLConnection sqlConnection;
public ApprovalsService(IFluentSQLConnection fluentSQL)
=> this.fluentSQL = fluentSQL;
public ApprovalsService(ISQLConnection sqlConnection)
=> this.sqlConnection = sqlConnection;
public Result Add(ProductionApproval approval)
{
var message = string.Empty;
var rowsAffected = this.fluentSQL
var rowsAffected = this.sqlConnection
.CreateCommand($@"
INSERT INTO [ProductionSkipAndLifeTimeInfo] (
[OrderNumber]