I currently use Devart.Data.Oracle.Entity 8.5.563
Code: Select all
public static IQueryable<TEntity> ReflectionAnyInteract<TEntity>(this IQueryable<TEntity> queryable, ParameterExpression param, Expression property, object value)
{
var expression = Expression.Lambda<Func<TEntity, bool>>(
Expression.Call(
property,
DbGeometryAnyInteract,
Expression.Constant(value)),
param);
return queryable.Where(expression);
}
MethodInfo DbGeometryAnyInteract = typeof(DbGeometry).GetMethods().First(m => m.Name == "Crosses" && m.GetParameters().Length == 1);