DataTableDictionary¶
Provides fast data table access through case-insensitive keys.
Remarks¶
Create a dictionary with DataTable.ToDictionary. Changes made through the dictionary are applied to the underlying DataTable and are saved with DataTableDictionary.Save or DataTable.Save.
When a key contains no . character, leading zeroes are removed, so '00001234' and '1234' are the same key.
Capabilities¶
Lookup¶
- DataTableDictionary.Ensure: Updates the rows with the specified key, or adds a new row if no row has the key.
- DataTableDictionary.Get: Looks up the rows with the specified key.
- DataTableDictionary.Has: Returns a value indicating whether the specified key exists in the dictionary.
- DataTableDictionary.Keys: Returns all dictionary keys as a string array.
Mutation and Persistence¶
- DataTableDictionary.Save: Saves all changes of the underlying DataTable to the database.
- DataTableDictionary.Set: Adds an entry with the specified key and rows to the dictionary.