Enum SqlServerEngineEdition
The SQL Server engine edition a SqlServerDataContext declares, mirroring the values of
SERVERPROPERTY('EngineEdition'). The declaration is immutable and supplied by the caller: nextorm
never queries the server for this value, so the emitted SQL stays a pure function of the constructor
arguments.
Only SqlDatabase (5), AzureSqlManagedInstance (8) and
MicrosoftFabricSqlDatabase (12) grant the edition-derived native json capability,
because those are the products whose engine has the native json data type while reporting a
ProductMajorVersion below 17. AzureSynapseServerlessSqlPoolOrMicrosoftFabric (11)
does not grant it: the value covers "Azure Synapse serverless SQL pool, or Microsoft Fabric", and
the serverless pool has no json column type. Every other value, and an unset edition, grant
nothing; the unchanged version gate (major 17 or higher) still applies on its own.
public enum SqlServerEngineEdition
- Extension Methods
Fields
AzureSqlEdge = 9Azure SQL Edge; grants no edition-derived capability.
AzureSqlManagedInstance = 8Azure SQL Managed Instance; grants the edition-derived native
jsoncapability.AzureSynapseAnalytics = 6Azure Synapse Analytics; grants no edition-derived capability.
AzureSynapseServerlessSqlPoolOrMicrosoftFabric = 11Azure Synapse serverless SQL pool, or Microsoft Fabric. Deliberately grants no edition-derived capability: the serverless pool has no native
jsoncolumn type.Enterprise = 3Enterprise edition, including Enterprise Developer, Developer and Evaluation.
Express = 4Express edition, including Express with Tools and Express with Advanced Services.
MicrosoftFabricSqlDatabase = 12Microsoft Fabric SQL database; grants the edition-derived native
jsoncapability.PersonalOrDesktop = 1Personal or Desktop Engine (not available in SQL Server 2005 (9.x) and later).
SqlDatabase = 5Azure SQL Database; grants the edition-derived native
jsoncapability.Standard = 2Standard edition, including Standard Developer, Web and Business Intelligence.