So i have a function which tries to add a specific price to an existing product .
My problem is the dictionary works just fine if i run my code from visual studio, but if i copy the debug folder from my project and i run the .exe comand from it the dictionary does not work and i end up having duplicate promotions for a product
Dictionary<string, string> filter= new Dictionary<string, string>();
filter.Clear();
filter.Add("id_product", prod.id.ToString());
filter.Add("price", String.Format("{0:0.000000}", prod.price));
filter.Add("from", startDate);
filter.Add("to", endDate);
var result = specificPriceFactory.GetByFilter(filter, null, null);
specific_price specificPrice = null;
if (result.Count == 0)
{
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…