DataForge

Entity Generators

How DataForge maps your POCOs and which property types it fills.


Entities are ordinary C# classes. DataForge matches properties by name and type and fills them with localized values.

csharp
public class Person
{
    public string Name { get; set; }
    public string Email { get; set; }
    public string Phone { get; set; }
    public Address Address { get; set; }
}

Supported property types

  • string — names, emails, addresses, identifiers
  • Numeric types — ids, quantities, amounts
  • DateTime — dates inside a sensible range
  • Nested classes — recursively generated
  • Enums — randomly picked from your own values

Naming convention

Property names drive generator selection: PostalCode, CompanyName, and VatNumber each resolve to a country-aware generator automatically.