public static DatabaseQuery <T> WhereNotIn <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 => (DatabaseQuery <T>)query.WhereNotIn(property.GetPropertyPath(), subquery, targetProperty.GetPropertyPath());
public static DatabaseQuery <T> WhereNotIn <T>(this DatabaseQuery <T> query, Expression <Func <T, object> > property, DatabaseQuery subquery, string targetField) where T : IEntity => (DatabaseQuery <T>)query.WhereNotIn(property.GetPropertyPath(), subquery, targetField);