Exemple #1
0
        public static T[] FindAll(DetachedCriteria detachedCriteria, Order order)
        {
            detachedCriteria.AddOrder(order);

            GenericDao <T> dao = new GenericDao <T>();

            return(dao.FindAll(detachedCriteria));
        }
Exemple #2
0
        public static T[] FindAllByProperty(string property, object value)
        {
            DetachedCriteria dc = DetachedCriteria.For(typeof(T));

            if (value == null)
            {
                dc.Add(Expression.IsNull(property));
            }
            else
            {
                dc.Add(Expression.Eq(property, value));
            }

            GenericDao <T> dao = new GenericDao <T>();

            return(dao.FindAll(dc));
        }
Exemple #3
0
        public static T[] FindAll(Order order)
        {
            GenericDao <T> dao = new GenericDao <T>();

            return(dao.FindAll(order));
        }
Exemple #4
0
        public static T[] FindAll(DetachedCriteria detachedCriteria)
        {
            GenericDao <T> dao = new GenericDao <T>();

            return(dao.FindAll(detachedCriteria));
        }
Exemple #5
0
        public static T[] FindAll(string OrderByProperty)
        {
            GenericDao <T> dao = new GenericDao <T>();

            return(dao.FindAll(OrderByProperty));
        }
Exemple #6
0
        public static T[] FindAll()
        {
            GenericDao <T> dao = new GenericDao <T>();

            return(dao.FindAll());
        }