예제 #1
0
        // retrieve values from database
        private void LoadFromID()
        {
            PurchaseData    dao     = new PurchaseData(ConnStr);
            PurchaseDetails details = dao.RetrieveDetails(Id);

            UserId    = details.UserId;
            ProductId = details.ProductId;
        }