Exemplo n.º 1
0
 public void Search()
 {
     using (ProductSPDataSetManager mgr = new ProductSPDataSetManager()) {
         try {
             DataCollection = mgr.Search(SearchEntity);
             RowsAffected   = mgr.RowsAffected;
             ResultText     = "Rows Affected: " + RowsAffected.ToString();
         }
         catch (Exception ex) {
             PublishException(ex);
         }
     }
 }
Exemplo n.º 2
0
        public void GetAllWithOutputParameter()
        {
            using (ProductSPDataSetManager mgr = new ProductSPDataSetManager()) {
                try {
                    DataCollection = mgr.GetAllWithOutputParameter();
                    RowsAffected   = mgr.RowsAffected;

                    ResultText = "Check the Output Window for OUTPUT parameter value";
                }
                catch (Exception ex) {
                    PublishException(ex);
                }
            }
        }
Exemplo n.º 3
0
        public Product Get(int productId)
        {
            DataCollection = new List <Product>();
            using (ProductSPDataSetManager mgr = new ProductSPDataSetManager()) {
                try {
                    Entity       = mgr.Get(productId);
                    RowsAffected = mgr.RowsAffected;
                    ResultText   = "Rows Affected: " + RowsAffected.ToString();

                    DataCollection.Add(Entity);
                }
                catch (Exception ex) {
                    PublishException(ex);
                }
            }

            return(Entity);
        }