Class SqlConnectionExtensions
Extension methods for System.Data.SqlClient.SqlConnection class.
Inheritance
System.Object
SqlConnectionExtensions
Namespace: Kros.Data.SqlServer
Assembly: Kros.Utils.dll
Syntax
public static class SqlConnectionExtensions
Methods
GetVersion(SqlConnection)
Returns System.Data.SqlClient.SqlConnection.ServerVersion string as System.Version object.
Declaration
public static Version GetVersion(this SqlConnection connection)
Parameters
Type | Name | Description |
---|---|---|
System.Data.SqlClient.SqlConnection | connection | Connection from which SQL Server version is returned. |
Returns
Type | Description |
---|---|
System.Version | SQL Server version as System.Version object. |