public static IDatabaseQuery <T> WhereIn <T, K>(this IDatabaseQuery <T> query, Expression <Func <T, object> > property, IDatabaseQuery <K> subquery, Expression <Func <K, object> > targetProperty) where T : IEntity where K : IEntity { return((IDatabaseQuery <T>)query.WhereIn(property.GetPropertyPath(), subquery, targetProperty.GetPropertyPath())); }
public static IDatabaseQuery <T> WhereIn <T>(this IDatabaseQuery <T> query, Expression <Func <T, object> > property, IDatabaseQuery subquery, string targetField) where T : IEntity => (IDatabaseQuery <T>)query.WhereIn(property.GetPropertyPath(), subquery, targetField);