dotnet / dotnet/efcore

Use SqlCommand.EnableOptimizedParameter

Open
#29,841 2 comments 1 reaction 1 assignee Assigned to @AndriySvyryd View on GitHub
area-perf area-query area-save-changes customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

See [SqlCommand.EnableOptimizedParameterBinding Property](https://learn.microsoft.com/en-us/dotnet/api/microsoft.data.sqlclient.sqlcommand.enableoptimizedparameterbinding?view=sqlclient-dotnet-standard-5.0).

We should be able to make good use of this flag since we know what kind of parameters we are going to use and they are almost always input.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.