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