Beispiel #1
0
        /// <summary>
        /// Loads a list of entities with specified ids
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public static IList <T> Load(ICollection ids)
        {
            ICriteria criteria = SessionManager.CurrentSession
                                 .CreateCriteria(typeof(T))
                                 .Add(Expression.In(Projections.Id(), ids));

            return(criteria.List <T>());
        }
Beispiel #2
0
 public AbstractCriterion In(Object[] values)
 {
     return(Expression.In(PropertyName, values));
 }
Beispiel #3
0
 public AbstractCriterion In(ICollection values)
 {
     return(Expression.In(PropertyName, values));
 }