nickdodd79 / AutoBogus

A C# library complementing the Bogus generator by adding auto creation and population capabilities.
MIT License
431 stars 50 forks source link

Updated the generation of DataTable row field data to work with other value types #57

Closed logiclrd closed 3 years ago

logiclrd commented 3 years ago

DataTableGenerator.cs contains logic to customize the generation of value types by TypeCode value, and falls back on a generated proxy to context.Generate<T> for unrecognized types. The initial implementation of this includes an unnecessary constraint that T be a reference type. This means that columns of types like DateTimeOffset will fail.

This PR: