How to correctly implement VerifyAllColumnsBound = true and TableAliases #424
Unanswered
CeeSharper
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To compensate for mis-spelled columns in the gherkin leading to false test passes, I was hoping that the TableAliases would be the trick to allow for spaces in the column names since it seems that using the VerifyAllColumnsBound = true takes away the flexibility of CreateSet or CreateInstance. However using the syntax provided in the docs '[]?' as an optional space does not seem to work. Has anyone been successful using TableAliases?
Example:
var foo = table.CreateInstance<Foo>(new InstanceCreationOptions { VerifyAllColumnsBound = true })
This reports the following error
Invalid pattern 'My[]?Long[]?Property[]?Name' at offset #. Unterminated [] set.
However attempting to use a regex for optional space like this throws Reqnroll.ColumnCouldNotBeBoundException same as if the TableAliases were not present at all.
Beta Was this translation helpful? Give feedback.
All reactions