You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// When possible, uses a <c>TOP(n)</c> clause in the underlying <c>SELECT</c> statement to assist SQL Server memory grant estimation. The default is <see langword="true"/>.
@@ -28,19 +28,19 @@ public QueryableValuesSqlServerOptions UseSelectTopOptimization(bool useSelectTo
28
28
}
29
29
30
30
/// <summary>
31
-
/// Configures serialization options. The default is <see cref="SerializationOptions.Auto"/>.
31
+
/// Configures the serialization format to be used when sending data to SQL Server. The default is <see cref="SqlServerSerialization.Auto"/>.
/// Specifies the serialization format to be used when sending data to SQL Server.
6
+
/// </summary>
7
+
publicenumSqlServerSerialization
8
+
{
9
+
/// <summary>
10
+
/// Automatically chooses between JSON and XML serialization based on server and database compatibility.
11
+
/// </summary>
12
+
/// <remarks>
13
+
/// <para>
14
+
/// This option may cause an additional round-trip to the database to check for JSON compatibility,
15
+
/// but only once per unique connection string for the life of the process. If JSON serialization is not supported, XML is used instead.
16
+
/// </para>
17
+
/// <para>
18
+
/// Caveat: If the very first query sent to the server is a QueryableValues enabled one, it will use XML and then switch to JSON (if supported) afterward.
19
+
/// </para>
20
+
/// </remarks>
21
+
Auto=0,
22
+
23
+
/// <summary>
24
+
/// Uses the JSON serializer for better performance.
25
+
/// </summary>
26
+
/// <remarks>
27
+
/// <para>
28
+
/// Using JSON is faster than XML, but requires SQL Server 2016 or newer and a database compatibility level of 130 or higher.<br/>
29
+
/// More info: <see href="https://learn.microsoft.com/en-us/sql/t-sql/functions/openjson-transact-sql"/>.
30
+
/// </para>
31
+
/// <para>
32
+
/// <b>WARNING:</b> If JSON serialization is not supported, an error will occur at runtime.
33
+
/// </para>
34
+
/// </remarks>
35
+
UseJson=1,
36
+
37
+
/// <summary>
38
+
/// Uses the XML serializer, which is compatible with all supported versions of SQL Server to date.
0 commit comments