[Fix]: No need for fancy conversion if there is a conversion expression on a Clr type which is an enum

pull/131/head
Christopher Jolly 3 years ago
parent ae21d832f1
commit ef5c33cb74

@ -364,6 +364,11 @@ namespace EntityFrameworkCore.Jet.Query.Sql.Internal
return convertExpression;
}
if (typeMapping.ClrType.IsEnum)
{
Visit(convertExpression.Operand);
return convertExpression;
}
throw new InvalidOperationException($"Cannot cast to CLR type '{typeMapping.ClrType.Name}' with Jet.");
}

Loading…
Cancel
Save