After you paste it, move the line or lines that add parameters into the body of the `cmd` argument (which is named `cmd` so that you can move the lines without changing the variable name) and then delete the existing code that executed the query previously.
public OpExprOrType(TType type) { _type = type; _which = which.Type; }
I found that the solution for me, was to delete the collection in my cosmosDB on the Azure portal and add CreateIfNotExists = true to the out binding. This allow the out binding to create the collection without a PartitionKey (which are not possible from the Azure portal through the web interface, as this are required) and then remove the PartitionKey = "/id" from the in binding.
public OpExprOrType(Expr exp) { _exp = exp; _which = which.Expr; }
public OpExprOrType(WOrC op) { _op = op; _which = which.Op; }