Пример #1
0
 /// <summary>
 /// The name of the property on the associated entity to which our FK refers
 /// </summary>
 /// <param name="factory">The mappings... </param>
 /// <returns> The appropriate property name. </returns>
 public string GetIdentifierOrUniqueKeyPropertyName(IMapping factory)
 {
     if (IsReferenceToPrimaryKey)
     {
         return(factory.GetIdentifierPropertyName(GetAssociatedEntityName()));
     }
     else
     {
         return(uniqueKeyPropertyName);
     }
 }
Пример #2
0
		/// <summary> 
		/// The name of the property on the associated entity to which our FK refers 
		/// </summary>
		/// <param name="factory">The mappings... </param>
		/// <returns> The appropriate property name. </returns>
		public string GetIdentifierOrUniqueKeyPropertyName(IMapping factory)
		{
			if (IsReferenceToPrimaryKey)
			{
				return factory.GetIdentifierPropertyName(GetAssociatedEntityName());
			}
			else
			{
				return uniqueKeyPropertyName;
			}
		}