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