I am using a LINQ query to retrieve product SKUs. The problem is that lgVM670VG
is different from lgVM670Vg
; the query will return the result no matter what (the actual SKU is lgVM670VG
).
SKU currentSKU = new SKU();
SKUDataContext dcSKU = new SKUDataContext();
var skuQuery =
(from s in dcSKU.SKUs
where s.SKU1 == strSKU
orderby s.SKU1
select s).SingleOrDefault();