nativesqlqueryjoinreturn.cs

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

CS
45
字号
using System;
using System.Collections;

namespace NHibernate.Engine.Query.Sql
{
	/// <summary> 
	/// Represents a return defined as part of a native sql query which
	/// names a fetched role. 
	/// </summary>
	[Serializable]
	public class NativeSQLQueryJoinReturn : NativeSQLQueryNonScalarReturn
	{
		private readonly string ownerAlias;
		private readonly string ownerProperty;

		/// <summary> Construct a return descriptor representing some form of fetch. </summary>
		/// <param name="alias">The result alias </param>
		/// <param name="ownerAlias">The owner's result alias </param>
		/// <param name="ownerProperty">The owner's property representing the thing to be fetched </param>
		/// <param name="propertyResults">Any user-supplied column->property mappings </param>
		/// <param name="lockMode">The lock mode to apply </param>
		public NativeSQLQueryJoinReturn(string alias, string ownerAlias, string ownerProperty, IDictionary propertyResults, LockMode lockMode)
			: base(alias, propertyResults, lockMode)
		{
			this.ownerAlias = ownerAlias;
			this.ownerProperty = ownerProperty;
		}

		/// <summary> The alias of the owner of this fetched association. </summary>
		public string OwnerAlias
		{
			get { return ownerAlias; }
		}

		/// <summary> 
		/// Retrieve the property name (relative to the owner) which maps to
		/// the association to be fetched. 
		/// </summary>
		public string OwnerProperty
		{
			get { return ownerProperty; }
		}
	}
}

⌨️ 快捷键说明

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