/// <summary> /// Adds association mapping to current column's entity. /// </summary> /// <typeparam name="S">Association member type.</typeparam> /// <typeparam name="ID1">This association side key type.</typeparam> /// <typeparam name="ID2">Other association side key type.</typeparam> /// <param name="prop">Association member getter expression.</param> /// <param name="thisKey">This association key getter expression.</param> /// <param name="otherKey">Other association key getter expression.</param> /// <returns>Returns association mapping builder.</returns> public PropertyMappingBuilder <T> Association <S, ID1, ID2>( Expression <Func <T, S> > prop, Expression <Func <T, ID1> > thisKey, Expression <Func <S, ID2> > otherKey) { return(_entity.Association(prop, thisKey, otherKey)); }
/// <summary> /// Adds association mapping to current column's entity. /// </summary> /// <typeparam name="TOther">Association member type.</typeparam> /// <typeparam name="TThisKey">This association side key type.</typeparam> /// <typeparam name="TOtherKey">Other association side key type.</typeparam> /// <param name="prop">Association member getter expression.</param> /// <param name="thisKey">This association key getter expression.</param> /// <param name="otherKey">Other association key getter expression.</param> /// <param name="canBeNull">Defines type of join. True - left join, False - inner join.</param> /// <returns>Returns association mapping builder.</returns> public PropertyMappingBuilder <TEntity, TOther> Association <TOther, TThisKey, TOtherKey>( Expression <Func <TEntity, TOther> > prop, Expression <Func <TEntity, TThisKey> > thisKey, Expression <Func <TOther, TOtherKey> > otherKey, bool canBeNull = true) { return(_entity.Association(prop, thisKey, otherKey, canBeNull)); }