public HqlExpression BuildHql(HqlExpression expression, ReadOnlyCollection <HqlExpression> arguments, HqlTreeBuilder treeBuilder) { var ex = treeBuilder.CastToIType(new CompositeCustomType <TzdbZonedDateTimeAsUtcDateTimeType>(), expression); typeof(HqlTreeNode).GetMethod("SetText", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).Invoke(ex, new object[] { "method, method" }); return(ex); }
public HqlExpression BuildHql(HqlExpression expression, ReadOnlyCollection <HqlExpression> arguments, HqlTreeBuilder treeBuilder) { return(treeBuilder.CastToIType(new T(), expression)); }
public override HqlExpression BuildHql(HqlExpression expression, ReadOnlyCollection <HqlExpression> arguments, HqlTreeBuilder treeBuilder) { return(treeBuilder.CastToIType(_type, expression)); }
public HqlExpression BuildHql(HqlExpression expression, ReadOnlyCollection <HqlExpression> arguments, HqlTreeBuilder treeBuilder) { return(treeBuilder.CastToIType(NHibernateUtil.UtcDateTime, treeBuilder.Cast(expression, typeof(DateTime)))); }