Before serialization I have a Linq value like:
{((i.CustomerInboundRef == value(InventoryManager.PutawayService+<>c__DisplayClass29_0).customerCartonRef) }
This generates a nice sql server query with parameterized values.
After serialization the Linq value becomes a literal: {(i.CustomerInboundRef == "30c8725f-d")}
This generates a non parameterized sql server query, and I believe prevents the query from being reused in Entity Framework query cache.
When we serialize and deserialize can we keep the variable reference, so that the query can be generated with parameterized values?