public static CollectionType CustomCollection(string typeName, IDictionary <string, string> typeParameters, string role, string propertyRef) { System.Type typeClass; try { typeClass = ReflectHelper.ClassForName(typeName); } catch (Exception cnfe) { throw new MappingException("user collection type class not found: " + typeName, cnfe); } CustomCollectionType result = new CustomCollectionType(typeClass, role, propertyRef); if (typeParameters != null) { InjectParameters(result.UserType, typeParameters); } return(result); }
public static CollectionType CustomCollection(string typeName, IDictionary<string, string> typeParameters, string role, string propertyRef, bool embedded) { System.Type typeClass; try { typeClass = ReflectHelper.ClassForName(typeName); } catch (Exception cnfe) { throw new MappingException("user collection type class not found: " + typeName, cnfe); } CustomCollectionType result = new CustomCollectionType(typeClass, role, propertyRef, embedded); if (typeParameters != null) { InjectParameters(result.UserType, typeParameters); } return result; }