コード例 #1
0
        public VendorCollection GetVendorsCollection(string where, string orderBy)
        {
            VendorData       data = new VendorData();
            VendorCollection col  = new VendorCollection();

            try
            {
                col = data.GetAllVendorsDynamicCollection(where, orderBy);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetVendorsCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
コード例 #2
0
        public VendorCollection GetAllVendorsCollection()
        {
            VendorData       data = new VendorData();
            VendorCollection col  = new VendorCollection();

            try
            {
                col = data.GetAllVendorsCollection();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllVendorsCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }