Example #1
0
 public static DetachedCriteria CreateCriteria <T>(this DetachedCriteria criteria, Expression <Func <T, object> > expression)
 {
     return(criteria.CreateCriteria(Clr <T> .Name(expression)));
 }
Example #2
0
 public static SqlString Column <T>(this SqlString s, Expression <Func <T, object> > exp)
 {
     return(s.Append(Clr <T> .Name(exp).ToLower()));
 }
Example #3
0
 public static DetachedCriteria SetFetchMode <T>(this DetachedCriteria criteria, Expression <Func <T, object> > expression, FetchMode fetchmode)
 {
     return(criteria.SetFetchMode(Clr <T> .Name(expression), fetchmode));
 }