本文整理汇总了C#中ISessionFactoryImplementor.GetImportedClassName方法的典型用法代码示例。如果您正苦于以下问题:C# ISessionFactoryImplementor.GetImportedClassName方法的具体用法?C# ISessionFactoryImplementor.GetImportedClassName怎么用?C# ISessionFactoryImplementor.GetImportedClassName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ISessionFactoryImplementor
的用法示例。
在下文中一共展示了ISessionFactoryImplementor.GetImportedClassName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetImportedClass
public static System.Type GetImportedClass(ISessionFactoryImplementor sfi, string className)
{
string importedName = sfi.GetImportedClassName(className);
if (importedName == null)
{
return null;
}
return System.Type.GetType(importedName, false);
}
示例2: FindQueryableUsingImports
public static IQueryable FindQueryableUsingImports(ISessionFactoryImplementor sfi, string className)
{
string importedClassName = sfi.GetImportedClassName(className);
if (importedClassName == null)
{
return null;
}
return (IQueryable) sfi.GetEntityPersister(importedClassName, false);
}
示例3: GetImportedClass
/// <summary>
/// Gets the Type for the name that might be an Imported Class.
/// </summary>
/// <param name="name">The name that might be an ImportedClass.</param>
/// <param name="factory">The <see cref="ISessionFactoryImplementor"/> that contains the Imported Classes.</param>
/// <returns>A <see cref="System.Type"/> if <c>name</c> is an Imported Class, <c>null</c> otherwise.</returns>
private static System.Type GetImportedClass( string name, ISessionFactoryImplementor factory )
{
string importedName = factory.GetImportedClassName( name );
// don't care about the exception, just give us a null value.
return System.Type.GetType( importedName, false );
}