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)); } }
public IType GetIdentifierOrUniqueKeyType(IMapping factory) { if (IsReferenceToPrimaryKey) { return factory.GetIdentifierType(associatedClass); } else { return factory.GetPropertyType(associatedClass, uniqueKeyPropertyName); } }