Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 984 Bytes

File metadata and controls

18 lines (14 loc) · 984 Bytes

Formula generation and execution in C#

It makes possible create formulas and execute them. The code contains formula engine and test cases.

Example: Name of the subordinate with the highest number of vacations:

new DataNavigation<StringType>(nameof(TestDataContext.Subordinates),
                               new Where<NumericType, StringType>(
                                       new Equal<NumericType>(
                                               new ReadData<NumericType>(nameof(Person.RemainingVacation)),
                                               new GlobalDataNavigation<NumericType>(
                                                   new DataNavigation<NumericType>(
                                                       nameof(TestDataContext.Subordinates), 
                                                       new Max<NumericType>(nameof(Person.RemainingVacation))))),
                               new First<StringType>(nameof(Person.Name))))