Skip to content

Error with Enum in filter #131

@VidVid

Description

@VidVid

I'm trying to set up a simple approval workflow built into some of my tables, and have the following filter set up to exclude any entries that aren't suggestions:

modelBuilder.Filter(ExcludeSuggestionFilterName, Function(excludeSuggestions As IEditableBySuggestion) excludeSuggestions.SuggestionType = SuggestionOperation.None)

...Where SuggestionOperation is an Enum (same as SuggestionType in IEditableBySuggestion)

I get the following exception:

[NotImplementedException: Unhandled NodeType of ConvertChecked in LambdaToDbExpressionVisitor.VisitUnary]

If I change my code to use an Integer instead of an Enum in the interface and filter it works fine. Are Enums currently supported in filters?
(Using v.3.0.0 and System.Data.SqlClient)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions