TSqlModelUtils.CalculatePlatformCompatibility(SqlServerVersion) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.