mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-03-19 14:37:16 +00:00
Migration from Amazon MWS to Selling Partner API
This commit is contained in:
@@ -12,7 +12,7 @@ namespace bnhtrade.Core.Data.Database.AmazonShipment
|
||||
{
|
||||
private List<string> shipmentIdList;
|
||||
|
||||
public ReadShipmentInfo(string sqlConnectionString) : base(sqlConnectionString)
|
||||
public ReadShipmentInfo()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace bnhtrade.Core.Data.Database.AmazonShipment
|
||||
AND IsClosed = 0";
|
||||
}
|
||||
|
||||
using (SqlConnection conn = new SqlConnection(sqlConnectionString))
|
||||
using (SqlConnection conn = new SqlConnection(SqlConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace bnhtrade.Core.Data.Database.AmazonShipment
|
||||
private Dictionary<string, int> shipmentPKByAmazonShipmentIdDic;
|
||||
private Dictionary<int, string> amazonShipmentIdByShipmentPKDic;
|
||||
|
||||
public ReadShipmentPrimaryKey(string sqlConnectionString) : base(sqlConnectionString)
|
||||
public ReadShipmentPrimaryKey()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace bnhtrade.Core.Data.Database.AmazonShipment
|
||||
}
|
||||
|
||||
int shipmentPK = -1;
|
||||
using (SqlConnection conn = new SqlConnection(sqlConnectionString))
|
||||
using (SqlConnection conn = new SqlConnection(SqlConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace bnhtrade.Core.Data.Database.AmazonShipment
|
||||
private ReadShipmentPrimaryKey getPK;
|
||||
private Data.Database.Sku.GetSkuId skuIdLoopkup;
|
||||
|
||||
public SetShipmentInfo(string sqlConnectionString) : base(sqlConnectionString)
|
||||
public SetShipmentInfo()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace bnhtrade.Core.Data.Database.AmazonShipment
|
||||
{
|
||||
if (getPK == null)
|
||||
{
|
||||
getPK = new ReadShipmentPrimaryKey(sqlConnectionString);
|
||||
getPK = new ReadShipmentPrimaryKey();
|
||||
}
|
||||
return getPK;
|
||||
}
|
||||
@@ -39,7 +39,7 @@ namespace bnhtrade.Core.Data.Database.AmazonShipment
|
||||
{
|
||||
if (skuIdLoopkup == null)
|
||||
{
|
||||
skuIdLoopkup = new Sku.GetSkuId(sqlConnectionString);
|
||||
skuIdLoopkup = new Sku.GetSkuId(SqlConnectionString);
|
||||
}
|
||||
return skuIdLoopkup;
|
||||
}
|
||||
@@ -49,7 +49,7 @@ namespace bnhtrade.Core.Data.Database.AmazonShipment
|
||||
{
|
||||
using (var scope = new TransactionScope())
|
||||
{
|
||||
using (SqlConnection conn = new SqlConnection(sqlConnectionString))
|
||||
using (SqlConnection conn = new SqlConnection(SqlConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace bnhtrade.Core.Data.Database.AmazonShipment
|
||||
|
||||
private void DeleteShipmentItems(int shipmentId)
|
||||
{
|
||||
using (SqlConnection conn = new SqlConnection(sqlConnectionString))
|
||||
using (SqlConnection conn = new SqlConnection(SqlConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
|
||||
@@ -151,7 +151,7 @@ namespace bnhtrade.Core.Data.Database.AmazonShipment
|
||||
throw new Exception("Unsuficent properties set in Shipment Header Info.");
|
||||
}
|
||||
|
||||
using (SqlConnection conn = new SqlConnection(sqlConnectionString))
|
||||
using (SqlConnection conn = new SqlConnection(SqlConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
|
||||
@@ -218,7 +218,7 @@ namespace bnhtrade.Core.Data.Database.AmazonShipment
|
||||
}
|
||||
|
||||
// make the update
|
||||
using (SqlConnection conn = new SqlConnection(sqlConnectionString))
|
||||
using (SqlConnection conn = new SqlConnection(SqlConnectionString))
|
||||
{
|
||||
conn.Open();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user