Beispiel #1
0
 private AbstractCriterion CreatePropertyCriterion(Func <string, DetachedCriteria, AbstractCriterion> factoryMethod,
                                                   DetachedCriteria detachedCriterion)
 {
     return(factoryMethod(_propertyName, detachedCriterion));
 }
Beispiel #2
0
 /// <summary>
 /// Create a property less than subquery criterion
 /// </summary>
 /// <param name="detachedCriteria">detached criteria subquery</param>
 /// <returns>returns NHibernate.Criterion.AbstractCriterion</returns>
 public AbstractCriterion Lt(DetachedCriteria detachedCriteria)
 {
     return(CreatePropertyCriterion(Subqueries.PropertyLt, detachedCriteria));
 }
Beispiel #3
0
 /// <summary>
 /// Create a property greater than or equal some subquery criterion
 /// </summary>
 /// <param name="detachedCriteria">detached criteria subquery</param>
 /// <returns>returns NHibernate.Criterion.AbstractCriterion</returns>
 public AbstractCriterion GeSome(DetachedCriteria detachedCriteria)
 {
     return(CreatePropertyCriterion(Subqueries.PropertyGeSome, detachedCriteria));
 }