-1
I have the DeserializeObject
that fills in an order class and items, on the items I need to go through this class to record the data, the way I’m doing is zeroing the records, how I could read the data?.
public class Item
{
public string idItemPedido { get; set; }
public int item { get; set; }
public string plano { get; set; }
public Produto produto { get; set; }
public string descricaoItem { get; set; }
public decimal valorUnitario { get; set; }
public string qtde { get; set; }
public decimal valorTotal { get; set; }
public string pontos { get; set; }
}
string teste = "115873";
GravaItensPedido(teste);
public void GravaItensPedido(string CodigoCabecahoPedido)
{
var strQuery = "";
IEnumerable<Item> enumeracao = new List<Item>();
foreach (var item in enumeracao)
{
strQuery = "";
}
}
Possible duplicate of Query data from a collection in memory?
– NoobSaibot