Example #1
0
        /// <summary>
        /// Retrieve the complete list from db
        /// </summary>
        /// <returns>ItemMapList</returns>
        public static ItemMapList GetList()
        {
            CriteriaEx criteria = ItemMap.GetCriteria(ItemMap.OpenSession());

            ItemMapList list = DataPortal.Fetch <ItemMapList>(criteria);

            CloseSession(criteria.SessionCode);

            return(list);
        }
Example #2
0
        public static ItemMapList GetIsAssociatedItemsList(long oid)
        {
            CriteriaEx criteria = ItemMap.GetCriteria(ItemMap.OpenSession());

            //No criteria. Retrieve all de List
            criteria.Query = SELECT_BY_ASSOCIATED_ITEM(oid);
            ItemMapList list = DataPortal.Fetch <ItemMapList>(criteria);

            CloseSession(criteria.SessionCode);

            return(list);
        }