I have the following:
if (model.PartitionKey.Substring(2, 2) == \"05\" || model.PartitionKey.Substring(2, 2) == \"06\")
I have more like t
To aid readibility you could extract the Substring out into a variable and then test that:
Substring
var partitionKeyBits = model.PartitionKey.Substring(2, 2); if (partitionKeyBits == "05" || partitionKeyBits == "06") { }
But otherwise that is about it.