I need to write a job to create 1000s of items in Sitecore. As there are 100s fields in my Sitecore Data Template I would like to avoid repeating the below code line for each field in my code:
newItem.Fields["Title"].Value = "NewValue1";
Can I use GlassMapper (which I believe needs to run in the MVC context) or an equivalent to do this instead?
You have to map at least once even if it 100s of fields. You do not need to repeat that for 1000s of items. You should get all 1000 sourceObjects in a list and iterate over it to map its properties to Item fields.