Example #1
0
        internal static string SELECT(QueryConditions conditions)
        {
            OrderList orders = new OrderList();

            orders.NewOrder("Valor", ListSortDirection.Ascending, typeof(TipoGanado));
            conditions.Orders = orders;
            return(TipoGanado.SELECT(conditions, false));
        }
Example #2
0
        internal void CopyValues(TipoGanado source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source.Base.Record);
        }
Example #3
0
        /// <summary>
        /// Builds a TipoganadoList
        /// </summary>
        /// <param name="list"></param>
        /// <returns>TipoganadoList</returns>
        public static TipoGanadoList GetList(bool childs)
        {
            CriteriaEx criteria = TipoGanado.GetCriteria(TipoGanado.OpenSession());

            criteria.Childs = childs;

            if (nHManager.Instance.UseDirectSQL)
            {
                criteria.Query = SELECT();
            }

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

            CloseSession(criteria.SessionCode);
            return(list);
        }