Commit Graph

82 Commits (main)

Author SHA1 Message Date
Sean McArde c806955ce6 Added missing usings. 2023-12-11 16:12:14 -08:00
Sean McArde 1135eea353 Merge branch 'dev' 2023-12-11 16:10:41 -08:00
Sean McArdle dfe02c34b6 Create DynamicTypeRegistry.cs 2023-12-11 16:07:47 -08:00
Sean McArde 77d6c3f1a6 Pulled in my silly object dumping function. 2023-11-11 17:16:51 -08:00
Sean McArde 4c4d609f5d Generic property selector, could be useful elsewhere. 2023-11-02 12:52:50 -07:00
Sean McArde 8c548fcd38 Initial implementation for nested property selector. Not null safe. 2023-11-02 12:52:32 -07:00
Sean McArde 54ba5be48a Made nullable type checks more understandable as they only apply to value types boxed as nullables and unified return semantics for values processed as strings. 2023-09-11 12:32:56 -07:00
Sean McArde aef5190f3e Removed the static GenerateExpressionPolicyForType and fleshed out more interfaces. Need testing with nested policies which rely on a specific expression generator for correctness. 2023-09-07 17:39:25 -07:00
Sean McArde 484f517979 Bumped version with null literal feature. 2023-09-05 15:07:07 -07:00
Sean McArde 2b2a64c069 Merge remote-tracking branch 'origin/dev' 2023-09-05 15:03:28 -07:00
Sean McArde 9d35567c15 Added null literals via handlebar syntax. 2023-09-05 13:55:53 -07:00
Sean McArde 4c54089c10 Bumped version. 2023-09-02 14:46:15 -07:00
Sean McArde 780bf97abe Test coverage work. 2023-09-02 14:44:08 -07:00
Sean McArde 4eb2e2e6ab :Merge branch 'main' into dev 2023-09-02 11:30:57 -07:00
Sean McArde fac5734cf2 Added a virtual base class and child classes to reuse code. I don't like inheritance and vtable lookups but this shouldn't be critical path and caching can help with that later. 2023-09-02 11:30:15 -07:00
Sean McArde 7be468895d Fixed null bug. 2023-09-02 11:30:15 -07:00
Sean McArde c65aba2048 Needs refactoring of duplicated code. Tests pass. 2023-09-02 11:30:15 -07:00
Sean McArde 48bc308c83 Renamed test to convey intent. 2023-09-02 11:30:15 -07:00
Sean McArde 287f5e6549 Converted from record to class. 2023-09-02 11:30:15 -07:00
Sean McArde 1365ba544e TEST BROKEN - working on EF string comparisons. 2023-09-02 11:30:15 -07:00
Sean McArde 62a2df774c Added a virtual base class and child classes to reuse code. I don't like inheritance and vtable lookups but this shouldn't be critical path and caching can help with that later. 2023-09-02 11:20:24 -07:00
Sean McArde 9816801cbe Fixed null bug. 2023-09-02 10:00:17 -07:00
Sean McArde 2446257d6d Needs refactoring of duplicated code. Tests pass. 2023-09-02 09:42:42 -07:00
Sean McArde 99dcf3f3df Renamed test to convey intent. 2023-09-02 08:40:33 -07:00
Sean McArde f8b30208fe Converted from record to class. 2023-09-02 08:40:20 -07:00
Sean McArde 6332a2186d TEST BROKEN - working on EF string comparisons. 2023-09-01 20:26:17 -07:00
Sean McArdle 64f2aacb6b
Merge pull request #6 from sean-m/dev
Dev
2023-09-01 12:19:10 -07:00
Sean McArde fb0f797326 Added expression builder that explicitly supports EF. String comparison methods that would e invalid for translating to EF expression are not used. 2023-09-01 12:10:17 -07:00
Sean McArde afe1ca358f Merge branch 'main' into dev 2023-07-24 14:27:27 -07:00
Sean McArdle 66dbc8ee9d Create dotnet-library.yml
Initial stub for test action.
2023-07-24 14:23:56 -07:00
Sean McArde 634aacf702 Merge branch 'main' into dev 2023-07-24 14:19:46 -07:00
Sean McArde 76ff0b8201 Code coverage gaming. 2023-07-24 14:19:12 -07:00
Sean McArde 7f623d9c87 Added more tests and removing unused code. 2023-07-24 14:14:51 -07:00
Sean McArde 072205a66a Merge branch 'main' into dev 2023-07-24 13:04:43 -07:00
Sean McArde 739ed9021c Added unit testing project. 2023-07-24 13:01:13 -07:00
Sean McArde 9478aa9bfc Fixed intent of negative match. The Not expression was a bitwise operation rather than logical operation. Whoops. 2023-07-24 13:01:13 -07:00
Sean McArde 8081903698 Added negative predicate and negative string matches. 2023-07-24 13:01:13 -07:00
Sean McArde 45f14c36c6 Clean up. Good for me. 2023-07-24 13:01:13 -07:00
Sean McArde 5571844591 Revved version number. 2023-07-24 13:01:13 -07:00
Sean McArde 1e0bce3203 Added unit testing project. 2023-07-24 12:58:19 -07:00
Sean McArde 728bc2d76e Fixed intent of negative match. The Not expression was a bitwise operation rather than logical operation. Whoops. 2023-07-24 10:49:36 -07:00
Sean McArde a2c7912149 Added negative predicate and negative string matches. 2023-07-24 09:49:41 -07:00
Sean McArde 1c527f8e0a Clean up. Good for me. 2023-07-11 16:05:41 -07:00
Sean McArde 238bc233d3 Revved version number. 2023-07-11 16:03:50 -07:00
Sean McArdle 62ef59b7b6
Merge pull request #3 from sean-m/dev
Dev
2023-07-11 15:28:42 -07:00
Sean McArde 9ad34a8892 Cleanup 2023-07-11 15:27:12 -07:00
Sean McArde 65a7db7250 Renaming from filter to expression and adding a public interface. 2023-07-11 14:55:16 -07:00
Sean McArde 1685a3e290 Added test case. Need to move these into unit tests that fully exercise the rule engine. 2023-07-09 13:01:28 -07:00
Sean McArde 6178752da7 Updated Dump function to print out arrays of objects in tables with handling for null properties and array properties. Not exhaustive or robust, just a debugging aid. 2023-07-09 12:56:24 -07:00
Sean McArde e7b17dc0d3 Renamed Filter to Predicate or PredicateExpression to favor generalized nomenclature. 2023-07-08 15:55:35 -07:00