DataForge

Basic Usage

The core fluent API: ForCountry, Create, and chaining.


Every generation starts with a country provider and ends with Create<T>().

csharp
var person = DataForge
    .ForCountry(Country.PT)
    .Create<Person>();

Creating one entity

Create<T>() returns a single instance with every mapped property populated.

Creating many entities

csharp
var customers = DataForge
    .ForCountry(Country.US)
    .Create<Customer>(100);

Chaining

The builder is immutable and chainable — add options in any order before calling Create<T>().