protected Produto_bairro(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     this.Id      = info.GetInt32("Id");
     this.Produto = info.GetInt32("Produto");
     this.Bairro  = info.GetInt32("Bairro");
     this.Taxa    = info.GetDecimal("Taxa");
     CustomizeDeserializationProcess(info, context);
 }
Esempio n. 2
0
 protected Produto(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     this.Id           = info.GetInt32("Id");
     this.Nome         = info.GetString("Nome");
     this.Descricao    = info.GetString("Descricao");
     this.Preco        = info.GetDecimal("Preco");
     this.Imagem       = info.GetString("Imagem");
     this.Unidade      = (int?)info.GetValue("Unidade", typeof(int?));
     this.Dias_entrega = info.GetInt32("Dias_entrega");
     CustomizeDeserializationProcess(info, context);
 }
Esempio n. 3
0
 protected Pedido(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 {
     this.Id               = info.GetInt32("Id");
     this.Usuario          = info.GetInt32("Usuario");
     this.Endereco         = info.GetInt32("Endereco");
     this.Valor            = info.GetDecimal("Valor");
     this.Data             = (DateTime)info.GetValue("Data", typeof(DateTime));
     this.Status           = info.GetString("Status");
     this.Carrinho         = info.GetInt32("Carrinho");
     this.Pago             = (decimal)info.GetValue("Pago", typeof(decimal?));
     this.Metodo           = info.GetString("Metodo");
     this.Usuario_externo  = (int?)info.GetValue("Usuario_externo", typeof(int?));
     this.Origem           = info.GetString("Origem");
     this.Vencimento       = (DateTime?)info.GetValue("Vencimento", typeof(DateTime?));
     this.Tipo             = info.GetString("Tipo");
     this.Parcelas         = (int?)info.GetValue("Parcelas", typeof(int?));
     this.Motivo_troca     = info.GetString("Motivo_troca");
     this.Desconto         = (int)info.GetValue("Desconto", typeof(int?));
     this.Previsao_entrega = (DateTime?)info.GetValue("Previsao_entrega", typeof(DateTime?));
     CustomizeDeserializationProcess(info, context);
 }