本文整理汇总了C#中NHibernate.Hql.Ast.HqlTreeNode类的典型用法代码示例。如果您正苦于以下问题:C# HqlTreeNode类的具体用法?C# HqlTreeNode怎么用?C# HqlTreeNode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HqlTreeNode类属于NHibernate.Hql.Ast命名空间,在下文中一共展示了HqlTreeNode类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HqlJoin
public HqlJoin(IASTFactory factory, HqlTreeNode expression, HqlAlias @alias) : base(HqlSqlWalker.JOIN, "join", factory, expression, @alias)
{
}
示例2: AddChild
internal void AddChild(HqlTreeNode child)
{
_children.Add(child);
_node.AddChild(child.AstNode);
}
示例3: HqlMin
public HqlMin(IASTFactory factory, HqlTreeNode expression)
: base(HqlSqlWalker.AGGREGATE, "min", factory, expression)
{
}
示例4: HqlAnd
public HqlAnd(IASTFactory factory, HqlTreeNode left, HqlTreeNode right) : base(HqlSqlWalker.AND, "and", factory, left, right)
{
}
示例5: HqlCast
public HqlCast(IASTFactory factory, HqlTreeNode expression, System.Type type) : base(HqlSqlWalker.METHOD_CALL, "method", factory)
{
AddChild(new HqlIdent(factory, "cast"));
AddChild(new HqlExpressionList(factory, expression, new HqlIdent(factory, type)));
}
示例6: HqlAverage
public HqlAverage(IASTFactory factory, HqlTreeNode expression) : base(HqlSqlWalker.AGGREGATE, "avg", factory, expression)
{
}
示例7: HqlAs
public HqlAs(IASTFactory factory, HqlTreeNode expression, System.Type type) : base(HqlSqlWalker.AS, "as", factory, expression)
{
switch (System.Type.GetTypeCode(type))
{
case TypeCode.Int32:
AddChild(new HqlIdent(factory, "integer"));
break;
default:
throw new InvalidOperationException();
}
}
示例8: HqlCount
public HqlCount(IASTFactory factory, HqlTreeNode child)
: base(HqlSqlWalker.COUNT, "count", factory, child)
{
}
示例9: HqlOrderBy
public HqlOrderBy(IASTFactory factory, HqlTreeNode expression, HqlDirection hqlDirection)
: base(HqlSqlWalker.ORDER, "", factory, expression,
hqlDirection == HqlDirection.Ascending ?
(HqlTreeNode)new HqlDirectionAscending(factory) : (HqlTreeNode)new HqlDirectionDescending(factory))
{
}
示例10: ExecuteAddOrderBy
private void ExecuteAddOrderBy(HqlTreeNode orderBy)
{
if (orderBy == null)
return;
if (!_root.NodesPreOrder.OfType<HqlOrderBy>().Any())
_root.As<HqlQuery>().AddChild(orderBy);
}
示例11: Range
public HqlRange Range(HqlTreeNode ident, HqlAlias alias)
{
return new HqlRange(_factory, ident, alias);
}
示例12: AddChild
internal void AddChild(HqlTreeNode child)
{
if (child is HqlExpressionSubTreeHolder)
{
AddChildren(child.Children);
}
else
{
_children.Add(child);
_node.AddChild(child.AstNode);
}
}
示例13: HqlIn
public HqlIn(IASTFactory factory, HqlExpression itemExpression, HqlTreeNode source)
: base(HqlSqlWalker.IN, "in", factory, itemExpression)
{
AddChild(new HqlInList(factory, source));
}
示例14: HqlInList
public HqlInList(IASTFactory factory, HqlTreeNode source)
: base(HqlSqlWalker.IN_LIST, "inlist", factory, source)
{
}
示例15: AddSelectClause
public void AddSelectClause(HqlTreeNode select)
{
_root.NodesPreOrder.OfType<HqlSelectFrom>().First().AddChild(select);
}