Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Comparing data from SQLite database

$
0
0

Hello, guys! I'm working on a stock and sales project, so I need to check if a product quantity from the entry entQtde is avaliable by getting the amount in stock and comparing with the desired quantity. The verification would happen when the button btnSell is clicked. Here's my product class:

    [Table("Produto")]
    public class Produto
    {
        [PrimaryKey, AutoIncrement]
        public int ProdId { get; set; }
        public string ProdNome { get; set; }
        public string ProdMarca { get; set; }
        public int ProdQtde { get; set; }
        public string ProdDesc { get; set; }
        public string ProdFornecedor { get; set; }
        public decimal ProdRSCompra { get; set; }
        public decimal ProdRSVenda { get; set; }
        public string ProdEspecifica { get; set; }
    }
}

I appreciate any help, thanks in advance!


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>