當前位置: 首頁>>代碼示例>>C#>>正文


C# Ast.HqlTreeNode類代碼示例

本文整理匯總了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)
 {
 }
開發者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


注:本文中的NHibernate.Hql.Ast.HqlTreeNode類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。