/// <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); }
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); }