Getting started with MObject.apex
Functional Support
MObject.apex has builtin functional support. We can use functional chaining like this:
MObject.create(pb)
.put('Name', 'new pricebook')
.put('Opportunities', new List{ ... })
.persist();