About a year ago, I posted about a way to generate code from your Sitecore data without the need to use TDS. Since then, a new version of Unicorn was released, that supports a new serialization format called Rainbow.
The description on Rainbow’s GitHub page: An advanced serialization and comparison system for Sitecore. Designed for easy merging with YAML-based serialization, and a generic merge/deserialization framework. Works well with Unicorn, or by itself.
Unfortunately, the code generator didn’t support this format. But with a little tweaking, I’ve now added support for it!
You can follow the same instructions as described before. And after that, apply some specific changes to enable Rainbow support.
Happy code generating!