• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IASTFactory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IASTFactory的典型用法代码示例。如果您正苦于以下问题:C# IASTFactory类的具体用法?C# IASTFactory怎么用?C# IASTFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IASTFactory类属于命名空间,在下文中一共展示了IASTFactory类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: HqlTreeNode

		protected HqlTreeNode(int type, string text, IASTFactory factory, IEnumerable<HqlTreeNode> children)
		{
			Factory = factory;
			_node = factory.CreateNode(type, text);
			_children = new List<HqlTreeNode>();

			AddChildren(children);
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:8,代码来源:HqlTreeNode.cs


示例2: HqlTreeNode

        protected HqlTreeNode(int type, string text, IASTFactory factory, params HqlTreeNode[] children)
        {
            _node = factory.CreateNode(type, text);
            _children = new List<HqlTreeNode>();

            foreach (var child in children)
            {
                _children.Add(child);
                _node.AddChild(child.AstNode);
            }
        }
开发者ID:nkmajeti,项目名称:nhibernate,代码行数:11,代码来源:HqlTreeNode.cs


示例3: GenerateScalarColumns

		/// <summary>
		/// Generates the scalar column AST nodes for a given array of SQL columns
		/// </summary>
		public static void GenerateScalarColumns(IASTFactory factory, IASTNode node, string[] sqlColumns, int i)
		{
			if (sqlColumns.Length == 1)
			{
				GenerateSingleScalarColumn(factory, node, i);
			}
			else
			{
				node.Text = sqlColumns[0]; // Use the DOT node to emit the first column name.

				// Create the column names, folled by the column aliases.
				for (int j = 0; j < sqlColumns.Length; j++)
				{
					if (j > 0)
					{
						node = node.AddSibling(factory.CreateNode(HqlSqlWalker.SQL_TOKEN, sqlColumns[j]));
					}

					node = node.AddSibling(factory.CreateNode(HqlSqlWalker.SELECT_COLUMNS, " as " + NameGenerator.ScalarName(i, j)));
				}
			}
		}
开发者ID:hazzik,项目名称:nh-contrib-everything,代码行数:25,代码来源:ColumnHelper.cs


示例4: ParsePath

		/// <summary>
		/// Turns a path into an AST.
		/// </summary>
		/// <param name="path">The path.</param>
		/// <param name="factory">The AST factory to use.</param>
		/// <returns>An HQL AST representing the path.</returns>
		public static IASTNode ParsePath(string path, IASTFactory factory)
		{
			string[] identifiers = StringHelper.Split(".", path);
			IASTNode lhs = null;
			for (int i = 0; i < identifiers.Length; i++)
			{
				string identifier = identifiers[i];
				IASTNode child = factory.CreateNode(HqlSqlWalker.IDENT, identifier);
				if (i == 0)
				{
					lhs = child;
				}
				else
				{
					lhs = factory.CreateNode(HqlSqlWalker.DOT, ".", lhs, child);
				}
			}
			if (log.IsDebugEnabled)
			{
				log.Debug("parsePath() : " + path + " -> " + ASTUtil.GetDebugstring(lhs));
			}
			return lhs;
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:29,代码来源:PathHelper.cs


示例5: HqlInList

		public HqlInList(IASTFactory factory, HqlTreeNode source)
			: base(HqlSqlWalker.IN_LIST, "inlist", factory, source)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:4,代码来源:HqlTreeNode.cs


示例6: HqlStar

		public HqlStar(IASTFactory factory) : base(HqlSqlWalker.ROW_STAR, "*", factory)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:3,代码来源:HqlTreeNode.cs


示例7: HqlExpressionSubTreeHolder

		public HqlExpressionSubTreeHolder(IASTFactory factory, IEnumerable<HqlTreeNode> children) : base(int.MinValue, "expression sub-tree holder", factory, children)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:3,代码来源:HqlTreeNode.cs


示例8: HqlConcat

		public HqlConcat(IASTFactory factory, params HqlExpression[] args)
			: base(HqlSqlWalker.METHOD_CALL, "method", factory)
		{
			AddChild(new HqlIdent(factory, "concat"));
			AddChild(new HqlExpressionList(factory, args));
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:6,代码来源:HqlTreeNode.cs


示例9: HqlAll

		public HqlAll(IASTFactory factory)
			: base(HqlSqlWalker.ALL, "all", factory)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:4,代码来源:HqlTreeNode.cs


示例10: HqlDistinct

		public HqlDistinct(IASTFactory factory) : base(HqlSqlWalker.DISTINCT, "distinct", factory)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:3,代码来源:HqlTreeNode.cs


示例11: HqlJoin

		public HqlJoin(IASTFactory factory, HqlExpression expression, HqlAlias @alias) : base(HqlSqlWalker.JOIN, "join", factory, expression, @alias)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:3,代码来源:HqlTreeNode.cs


示例12: HqlMin

		public HqlMin(IASTFactory factory, HqlExpression expression)
			: base(HqlSqlWalker.AGGREGATE, "min", factory, expression)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:4,代码来源:HqlTreeNode.cs


示例13: HqlSum

		public HqlSum(IASTFactory factory, HqlExpression expression)
			: base(HqlSqlWalker.AGGREGATE, "sum", factory, expression)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:4,代码来源:HqlTreeNode.cs


示例14: HqlBitwiseNot

		public HqlBitwiseNot(IASTFactory factory) : base(HqlSqlWalker.BNOT, "not", factory)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:3,代码来源:HqlTreeNode.cs


示例15: HqlExists

		public HqlExists(IASTFactory factory, HqlQuery query) : base(HqlSqlWalker.EXISTS, "exists", factory, query)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:3,代码来源:HqlTreeNode.cs


示例16: HqlElements

		public HqlElements(IASTFactory factory) : base(HqlSqlWalker.ELEMENTS, "elements", factory)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:3,代码来源:HqlTreeNode.cs


示例17: HqlLeftFetchJoin

		public HqlLeftFetchJoin(IASTFactory factory, HqlExpression expression, HqlAlias @alias)
			: base(HqlSqlWalker.JOIN, "join", factory, new HqlLeft(factory), new HqlFetch(factory), expression, @alias)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:4,代码来源:HqlTreeNode.cs


示例18: HqlGroupBy

		public HqlGroupBy(IASTFactory factory, params HqlExpression[] expressions) : base(HqlSqlWalker.GROUP, "group by", factory, expressions)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:3,代码来源:HqlTreeNode.cs


示例19: HqlFetch

		public HqlFetch(IASTFactory factory) : base(HqlSqlWalker.FETCH, "fetch", factory)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:3,代码来源:HqlTreeNode.cs


示例20: HqlLike

		public HqlLike(IASTFactory factory, HqlExpression lhs, HqlExpression rhs)
			: base(HqlSqlWalker.LIKE, "like", factory, lhs, rhs)
		{
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:4,代码来源:HqlTreeNode.cs



注:本文中的IASTFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IASTNode类代码示例发布时间:2022-05-24
下一篇:
C# IARMv6Visitor类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap