Пример #1
0
 /// <summary>
 /// Sets the mapping hint for a .NET property
 /// </summary>
 /// <param name="propertyInfo">The property that the hint is set for</param>
 /// <param name="propertyHint">The property hint information</param>
 public void AddPropertyHint(PropertyInfo propertyInfo, PropertyHint propertyHint)
 {
     _propertyHints.Add(propertyInfo, propertyHint);
     if (propertyHint.MappingType == PropertyMappingType.Id && propertyInfo.DeclaringType != null)
     {
         _identityProperties[propertyInfo.DeclaringType] = propertyInfo;
     }
 }
Пример #2
0
 /// <summary>
 /// Sets the mapping hint for a .NET property
 /// </summary>
 /// <param name="propertyInfo">The property that the hint is set for</param>
 /// <param name="propertyHint">The property hint information</param>
 public void SetPropertyHint(PropertyInfo propertyInfo, PropertyHint propertyHint)
 {
     _propertyHints[propertyInfo] = propertyHint;
 }