packages clean up

This commit is contained in:
Stoyan Zlatev
2025-03-17 16:03:24 +01:00
parent 2f61122ea5
commit 8924cbbc08
172 changed files with 78756 additions and 1619 deletions
@@ -1,6 +1,6 @@
namespace Xylem.Common.Service.MeterProcessState.Controllers
{
using global::Common.Logic.Extensions.SQL;
using LaaPackages.SqlClient;
using Newtonsoft.Json;
@@ -24,8 +24,8 @@
try
{
var connectionString = ConfigurationManager.ConnectionStrings["Default"].ConnectionString;
var configurationBytes = SQLConnection
.CreateSQLConnection(connectionString)
var configurationBytes = SqlConnection
.CreateSqlConnection(connectionString)
.CreateCommand(@"
SELECT TOP 1 f.FileContent
FROM FileClusterStore AS fcs
@@ -1,4 +1,4 @@
using Common.Logic.Extensions.SQL;
using LaaPackages.SqlClient;
using Logic.ProductionToProductMapper.Cordonel;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
@@ -1279,8 +1279,8 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
[Route("CalibrationResults/{pcbId}")]
public IHttpActionResult CalibrationResults(String pcbId)
{
var result = SQLConnection
.CreateSQLConnection(GlobalConfig.ConnectionString.Value)
var result = SqlConnection
.CreateSqlConnection(GlobalConfig.ConnectionString.Value)
.CreateCommand($@"
SELECT TOP 1
ID
@@ -1,4 +1,4 @@
using Common.Logic.Extensions.SQL;
using LaaPackages.SqlClient;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
@@ -898,8 +898,8 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
[Route("api/fwupdate/databaseateol/{pcbid}")]
public IHttpActionResult DataBaseAtEOL(string pcbid)
{
var databaseAtEOL = SQLConnection
.CreateSQLConnection(GlobalConfig.connectionString.Value, error =>
var databaseAtEOL = SqlConnection
.CreateSqlConnection(GlobalConfig.connectionString.Value, error =>
{
throw new Exception(error);
})
@@ -1,4 +1,4 @@
using Common.Logic.Extensions.SQL;
using LaaPackages.SqlClient;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
@@ -207,8 +207,8 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
{
try
{
var customersOrders = SQLConnection
.CreateSQLConnection(GlobalConfig.connectionString.Value)
var customersOrders = SqlConnection
.CreateSqlConnection(GlobalConfig.connectionString.Value)
.CreateCommand($@"
SELECT apg.AuftragNr
, apg.PositionNr
@@ -1,5 +1,4 @@
using Common.Logic.Extensions.SQL;
using Newtonsoft.Json;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System;
@@ -1,4 +1,4 @@
using Common.Logic.Extensions.SQL;
using LaaPackages.SqlClient;
using Logic.ProductionToProductMapper.Cordonel;
using System;
using System.Collections.Generic;
@@ -621,8 +621,8 @@ namespace Service.MeterProcessState.Controllers
WHERE map.MapPcbIdToSerialNumber_PcbId = @pcb";
}
var apps = SQLConnection
.CreateSQLConnection(GlobalConfig.connectionString.Value)
var apps = SqlConnection
.CreateSqlConnection(GlobalConfig.connectionString.Value)
.CreateCommand(query)
.SetParameter(nameof(PcbId), PcbId)
.ExecuteReader(x => new
@@ -1,5 +1,4 @@
using Common.Logic.Extensions.SQL;
using Newtonsoft.Json;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
@@ -219,7 +218,7 @@ namespace Xylem.Common.Service.MeterProcessState.Controllers
/// <param name="SaveData"></param>
private Int64 saveRssiToDb(SaveDataClass SaveData)
{
var sqlConnection = SQLConnection.CreateSQLConnection(GlobalConfig.connectionString.Value);
var sqlConnection = LaaPackages.SqlClient.SqlConnection.CreateSqlConnection(GlobalConfig.connectionString.Value);
sqlConnection
.CreateCommand($@"
@@ -1,7 +1,6 @@
namespace Xylem.Common.Service.MeterProcessState.Controllers
{
using global::Common.Logic.Extensions.SQL;
using LaaPackages.SqlClient;
using System;
using System.Collections.Generic;
using System.Configuration;
@@ -36,8 +35,8 @@
[Route("SetMeterLogPathInfo"), HttpGet]
public IHttpActionResult SetMeterLogPathInfo(Int32 SerialNumber, Int32? TestRunId = null, Int32? CalibrationRunId = null, String BasePath = "", String MainLogName = "", String LEDName = "")
{
var rowsAffected = SQLConnection
.CreateSQLConnection(ConnectionString.Value)
var rowsAffected = SqlConnection
.CreateSqlConnection(ConnectionString.Value)
.CreateCommand($@"
INSERT
INTO [CordonelLogFiles]
@@ -72,8 +71,8 @@
[Route("SetCalibrationValues"), HttpPost]
public IHttpActionResult SetCalibrationValues([FromBody] JustageResults val)
{
var rowsAffected = SQLConnection
.CreateSQLConnection(ConnectionString.Value)
var rowsAffected = SqlConnection
.CreateSqlConnection(ConnectionString.Value)
.CreateCommand($@"
INSERT INTO[dbo].[Cordonel_Q3Calibration]
@@ -118,8 +117,8 @@
[Route("GetMeterInfoForTestBench"), HttpGet]
public IHttpActionResult GetMeterInfoForTestBench(String PcbID)
{
var results = SQLConnection
.CreateSQLConnection(ConnectionString.Value)
var results = SqlConnection
.CreateSqlConnection(ConnectionString.Value)
.CreateCommand($@"
SELECT DISTINCT
[MapPcbIdToSerialNumber_SerialNumber] AS [SerialNr]
@@ -194,8 +193,8 @@
[Route("GetOffsetCalibration/{pcbId}")]
public IHttpActionResult GetOffsetCalibration(int pcbId)
{
var offset = SQLConnection
.CreateSQLConnection(ConnectionString.Value)
var offset = SqlConnection
.CreateSqlConnection(ConnectionString.Value)
.CreateCommand($@"
SELECT [PcbId]
, [TestRunNr]
@@ -216,8 +215,8 @@
[HttpPost]
public IHttpActionResult AddOffsetCalibration([FromBody] CordonelCalibration model)
{
var rowsAffected = SQLConnection
.CreateSQLConnection(ConnectionString.Value)
var rowsAffected = SqlConnection
.CreateSqlConnection(ConnectionString.Value)
.CreateCommand($@"
INSERT
INTO [Cordonel_Calibrations]
@@ -243,8 +242,8 @@
[HttpPost]
public IHttpActionResult SetOffsetCalibration([FromBody] CordonelCalibration model)
{
var rowsAffected = SQLConnection
.CreateSQLConnection(ConnectionString.Value)
var rowsAffected = SqlConnection
.CreateSqlConnection(ConnectionString.Value)
.CreateCommand($@"
UPDATE [Cordonel_Calibrations]
SET [TestRunNr] = @{nameof(CordonelCalibration.TestRunNr)}
@@ -414,14 +414,14 @@
<Project>{8203ABB8-38E5-472E-A742-33F38B7A74A6}</Project>
<Name>WaterMeterCore</Name>
</ProjectReference>
<ProjectReference Include="..\..\LaaPackages\LaaPackages.SqlClient\LaaPackages.SqlClient.csproj">
<Project>{F90B940C-9A83-496D-AAE0-11CD02CE0A22}</Project>
<Name>LaaPackages.SqlClient</Name>
</ProjectReference>
<ProjectReference Include="..\..\Logic.PrdoctionToProductMapper\Logic.ProductionToProductMapper.csproj">
<Project>{D0C859D9-D55E-4E85-AC50-0FF31B1CE50D}</Project>
<Name>Logic.ProductionToProductMapper</Name>
</ProjectReference>
<ProjectReference Include="..\..\Logic\Common.Logic.Extensions.SQL\Common.Logic.Extensions.SQL.csproj">
<Project>{62490923-CD17-45A6-B79F-A027927C75B5}</Project>
<Name>Common.Logic.Extensions.SQL</Name>
</ProjectReference>
<ProjectReference Include="..\..\Logic\ProductionOrderCore\ProductionOrderCore.csproj">
<Project>{6D2777BB-7A88-466D-A49B-3266F9BF0160}</Project>
<Name>ProductionOrderCore</Name>