selectpathexpressionparser.cs

来自「NHibernate NET开发者所需的」· CS 代码 · 共 33 行

CS
33
字号
namespace NHibernate.Hql.Classic
{
	/// <summary></summary>
	public class SelectPathExpressionParser : PathExpressionParser
	{
		/// <summary>
		/// 
		/// </summary>
		/// <param name="q"></param>
		public override void End(QueryTranslator q)
		{
			if (CurrentProperty != null && !q.IsShallowQuery)
			{
				// "finish off" the join
				Token(".", q);
				Token(null, q);
			}
			base.End(q);
		}

		/// <summary></summary>
		protected override void SetExpectingCollectionIndex()
		{
			throw new QueryException("expecting .elements or .indices after collection path expression in select");
		}

		/// <summary></summary>
		public string SelectName
		{
			get { return CurrentName; }
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?