Spatial constant functionality not implemented yet
Posted: Wed 27 Jan 2016 14:51
I have a problem with strange error "Spatial constant functionality not implemented yet." in Devart.Data.Oracle.Entity which occurs while building expression trees with DbGeometry type as constant. What it means? Is building expression with spatial types impossible yet? Or is there any workaround?
I currently use Devart.Data.Oracle.Entity 8.5.563
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);