本文整理汇总了C#中NHibernate.Hql.Classic.QueryTranslator.CreateNameForCollection方法的典型用法代码示例。如果您正苦于以下问题:C# QueryTranslator.CreateNameForCollection方法的具体用法?C# QueryTranslator.CreateNameForCollection怎么用?C# QueryTranslator.CreateNameForCollection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NHibernate.Hql.Classic.QueryTranslator
的用法示例。
在下文中一共展示了QueryTranslator.CreateNameForCollection方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: End
/// <summary>
///
/// </summary>
/// <param name="q"></param>
public virtual void End(QueryTranslator q)
{
ignoreInitialJoin = false;
IType propertyType = PropertyType;
if (propertyType != null && propertyType.IsCollectionType)
{
collectionRole = ((CollectionType) propertyType).Role;
collectionName = q.CreateNameForCollection(collectionRole);
PrepareForIndex(q);
}
else
{
columns = CurrentColumns();
SetType(q);
}
//important!!
continuation = false;
}
示例2: DereferenceCollection
private void DereferenceCollection(String propertyName, String role, QueryTranslator q)
{
collectionRole = role;
IQueryableCollection collPersister = q.GetCollectionPersister(role);
string name = q.CreateNameForCollection(role);
AddJoin(name, collPersister.CollectionType);
//if ( collPersister.HasWhere )
//{
// join.AddCondition( collPersister.GetSQLWhereString( name ) );
//}
collectionName = name;
collectionOwnerName = currentName;
currentName = name;
currentProperty = propertyName;
componentPath.Length = 0;
//componentPath = new StringBuilder();
currentPropertyMapping = new CollectionPropertyMapping(collPersister);
}