
SeedPacket Examples
version 2 in C#
Created by Will Crowther
For more information on SeedPacket, go to https://www.seedpacket.net
or get it from NUGET at: https://www.nuget.org/packages/SeedPacket/2.0.8
Dictionary
Dictionary<TKey, TValue> implements IEnumerable and is supported by SeedPacket using the .Seed() method. Note that while the Value object properties are fully mapped by the Rules Engine, the Key only maps to the basic Rule for that type, usually int, string, or datetime, without allowing for a "nameMatch" filter. Be careful if a custom Rule has been applied to the Key datatype that it produces as this has to be unique.
Key | Value.ItemId | Value.ItemName | Value.Created |
---|---|---|---|
1 | 1 | machine | 4/27/2018 11:00:00 PM |
2 | 2 | aparatus | 12/26/2019 12:00:00 PM |
3 | 3 | blackbox | 1/22/2019 12:00:00 PM |
4 | 4 | widget | 6/25/2018 9:00:00 AM |
5 | 5 | gear | 12/1/2018 8:00:00 AM |
6 | 6 | whatnot | 11/12/2019 5:00:00 PM |
7 | 7 | doodad | 9/23/2020 4:00:00 AM |
8 | 8 | dingbat | 9/19/2021 3:00:00 PM |
9 | 9 | aparatus | 5/12/2019 2:00:00 PM |
10 | 10 | thingamajig | 12/7/2020 4:00:00 AM |