Skip to content

Serialization leads to non parameterized sql queries #1

@drsloat

Description

@drsloat

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions