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)); } }
/// <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()); }
/// <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); } }