本文整理汇总了C#中NHibernate.Hql.Ast.HqlTreeNode类的典型用法代码示例。如果您正苦于以下问题:C# HqlTreeNode类的具体用法?C# HqlTreeNode怎么用?C# HqlTreeNode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HqlTreeNode类属于NHibernate.Hql.Ast命名空间,在下文中一共展示了HqlTreeNode类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: HqlJoin
public HqlJoin(IASTFactory factory, HqlTreeNode expression, HqlAlias @alias) : base(HqlSqlWalker.JOIN, "join", factory, expression, @alias)
{
}
开发者ID:nkmajeti,项目名称:nhibernate,代码行数:3,代码来源:HqlTreeNode.cs
示例2: AddChild
internal void AddChild(HqlTreeNode child)
{
_children.Add(child);
_node.AddChild(child.AstNode);
}
开发者ID:nkmajeti,项目名称:nhibernate,代码行数:5,代码来源:HqlTreeNode.cs
示例3: HqlMin
public HqlMin(IASTFactory factory, HqlTreeNode expression)
: base(HqlSqlWalker.AGGREGATE, "min", factory, expression)
{
}
开发者ID:nkmajeti,项目名称:nhibernate,代码行数:4,代码来源:HqlTreeNode.cs
示例4: HqlAnd
public HqlAnd(IASTFactory factory, HqlTreeNode left, HqlTreeNode right) : base(HqlSqlWalker.AND, "and", factory, left, right)
{
}
开发者ID:nkmajeti,项目名称:nhibernate,代码行数:3,代码来源:HqlTreeNode.cs
示例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)));
}
开发者ID:nkmajeti,项目名称:nhibernate,代码行数:5,代码来源:HqlTreeNode.cs
示例6: HqlAverage
public HqlAverage(IASTFactory factory, HqlTreeNode expression) : base(HqlSqlWalker.AGGREGATE, "avg", factory, expression)
{
}
开发者ID:nkmajeti,项目名称:nhibernate,代码行数:3,代码来源:HqlTreeNode.cs
示例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();
}
}
开发者ID:nkmajeti,项目名称:nhibernate,代码行数:11,代码来源:HqlTreeNode.cs
示例8: HqlCount
public HqlCount(IASTFactory factory, HqlTreeNode child)
: base(HqlSqlWalker.COUNT, "count", factory, child)
{
}
开发者ID:nkmajeti,项目名称:nhibernate,代码行数:4,代码来源:HqlTreeNode.cs
示例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))
{
}
开发者ID:nkmajeti,项目名称:nhibernate,代码行数:6,代码来源:HqlTreeNode.cs
示例10: ExecuteAddOrderBy
private void ExecuteAddOrderBy(HqlTreeNode orderBy)
{
if (orderBy == null)
return;
if (!_root.NodesPreOrder.OfType<HqlOrderBy>().Any())
_root.As<HqlQuery>().AddChild(orderBy);
}
开发者ID:rwdownearth,项目名称:nhibernate-core,代码行数:8,代码来源:IntermediateHqlTree.cs
示例11: Range
public HqlRange Range(HqlTreeNode ident, HqlAlias alias)
{
return new HqlRange(_factory, ident, alias);
}
开发者ID:rytmis,项目名称:nhibernate-core,代码行数:4,代码来源:HqlTreeBuilder.cs
示例12: AddChild
internal void AddChild(HqlTreeNode child)
{
if (child is HqlExpressionSubTreeHolder)
{
AddChildren(child.Children);
}
else
{
_children.Add(child);
_node.AddChild(child.AstNode);
}
}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:12,代码来源:HqlTreeNode.cs
示例13: HqlIn
public HqlIn(IASTFactory factory, HqlExpression itemExpression, HqlTreeNode source)
: base(HqlSqlWalker.IN, "in", factory, itemExpression)
{
AddChild(new HqlInList(factory, source));
}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:5,代码来源:HqlTreeNode.cs
示例14: HqlInList
public HqlInList(IASTFactory factory, HqlTreeNode source)
: base(HqlSqlWalker.IN_LIST, "inlist", factory, source)
{
}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:4,代码来源:HqlTreeNode.cs
示例15: AddSelectClause
public void AddSelectClause(HqlTreeNode select)
{
_root.NodesPreOrder.OfType<HqlSelectFrom>().First().AddChild(select);
}
开发者ID:dpupek,项目名称:nhibernate-core,代码行数:4,代码来源:IntermediateHqlTree.cs
示例16: HqlExpressionSubTreeHolder
public HqlExpressionSubTreeHolder(IASTFactory factory, HqlTreeNode[] children) : base(int.MinValue, "expression sub-tree holder", factory, children)
{
}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:3,代码来源:HqlTreeNode.cs
示例17: AddFromClause
public void AddFromClause(HqlTreeNode from)
{
root.NodesPreOrder.Where(n => n is HqlFrom).First().AddChild(from);
}
开发者ID:Ruhollah,项目名称:nhibernate-core,代码行数:4,代码来源:IntermediateHqlTree.cs
示例18: AddFromClause
public void AddFromClause(HqlTreeNode from)
{
_root.NodesPreOrder.OfType<HqlFrom>().First().AddChild(from);
}
开发者ID:dpupek,项目名称:nhibernate-core,代码行数:4,代码来源:IntermediateHqlTree.cs
示例19: SetRoot
public void SetRoot(HqlTreeNode newRoot)
{
_root = newRoot;
}
开发者ID:dpupek,项目名称:nhibernate-core,代码行数:4,代码来源:IntermediateHqlTree.cs
示例20: AddChild
internal void AddChild(HqlTreeNode child)
{
if (child is HqlDistinctHolder)
{
AddChildren(child.Children);
}
else
{
_children.Add(child);
_node.AddChild(child.AstNode);
}
}
开发者ID:pontillo,项目名称:PowerNap,代码行数:12,代码来源:HqlTreeNode.cs
注:本文中的NHibernate.Hql.Ast.HqlTreeNode类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论