예제 #1
0
 public string[] GetColumnNames(IAssociationType type, int begin)
 {
     if (type.UseLHSPrimaryKey)
     {
         return(Persister.IdentifierColumnNames);
     }
     else
     {
         string propertyName = type.LHSPropertyName;
         if (propertyName == null)
         {
             //slice, to get the columns for this component property
             return(ArrayHelper.Slice(GetColumns(), begin, type.GetColumnSpan(Mapping)));
         }
         else
         {
             //property-refs for associations defined on a
             //component are not supported, so no need to slice
             return(Persister.GetPropertyColumnNames(propertyName));
         }
     }
 }