private IType GetReferencedType(IMapping mapping)
		{
			if (uniqueKeyPropertyName == null)
			{
				return mapping.GetIdentifierType(AssociatedClass);
			}
			else
			{
				return mapping.GetPropertyType(AssociatedClass, uniqueKeyPropertyName);
			}
		}
 private IType GetReferencedType(IMapping mapping)
 {
     if (uniqueKeyPropertyName == null)
     {
         return(mapping.GetIdentifierType(AssociatedClass));
     }
     else
     {
         return(mapping.GetPropertyType(AssociatedClass, uniqueKeyPropertyName));
     }
 }
Example #3
0
		/// <summary> Convenience method to locate the identifier type of the associated entity. </summary>
		/// <param name="factory">The mappings... </param>
		/// <returns> The identifier type </returns>
		internal virtual IType GetIdentifierType(IMapping factory)
		{
			return factory.GetIdentifierType(GetAssociatedEntityName());
		}
Example #4
0
 /// <summary> Convenience method to locate the identifier type of the associated entity. </summary>
 /// <param name="factory">The mappings... </param>
 /// <returns> The identifier type </returns>
 internal virtual IType GetIdentifierType(IMapping factory)
 {
     return(factory.GetIdentifierType(GetAssociatedEntityName()));
 }
		public IType GetIdentifierOrUniqueKeyType(IMapping factory)
		{
			if (IsReferenceToPrimaryKey)
			{
				return factory.GetIdentifierType(associatedClass);
			}
			else
			{
				return factory.GetPropertyType(associatedClass, uniqueKeyPropertyName);
			}
		}