ipropertymapping.cs

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

CS
35
字号
using NHibernate.Type;

namespace NHibernate.Persister.Entity
{
	/// <summary>
	/// Abstraction of all mappings that define properties: entities, collection elements.
	/// </summary>
	public interface IPropertyMapping
	{
		// TODO: It would be really, really nice to use this to also model components!

		/// <summary>
		/// Get the type of the thing containing the properties
		/// </summary>
		IType Type { get; }

		/// <summary>
		/// Given a component path expression, get the type of the property
		/// </summary>
		/// <param name="propertyName"></param>
		/// <returns></returns>
		IType ToType(string propertyName);

		/// <summary>
		/// Given a query alias and a property path, return the qualified column name
		/// </summary>
		/// <param name="alias"></param>
		/// <param name="propertyName"></param>
		/// <returns></returns>
		string[] ToColumns(string alias, string propertyName);

		/// <summary> Given a property path, return the corresponding column name(s).</summary>
		string[] ToColumns(string propertyName);
	}
}

⌨️ 快捷键说明

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