Share via


TSqlModelUtils.CalculatePlatformCompatibility(SqlServerVersion) Method

Definition

Maps from a SqlServerVersion to the TSqlPlatformCompatibility enum that matches it. The platform compatibility can be used to filter out extensions that don't support that platform, for instance code analysis rules.

public static Microsoft.SqlServer.Dac.Extensibility.TSqlPlatformCompatibility CalculatePlatformCompatibility (Microsoft.SqlServer.Dac.Model.SqlServerVersion version);
static member CalculatePlatformCompatibility : Microsoft.SqlServer.Dac.Model.SqlServerVersion -> Microsoft.SqlServer.Dac.Extensibility.TSqlPlatformCompatibility
Public Shared Function CalculatePlatformCompatibility (version As SqlServerVersion) As TSqlPlatformCompatibility

Parameters

version
SqlServerVersion

A SqlServerVersion, for example the version for a TSqlModel

Returns

TSqlPlatformCompatibility indicating the compatibility level required for extensions. If no specific version was passed into the method then the default will be to use All so that all extensions are loaded.

Applies to