EntityConnection.ServerVersion Property

 

Gets a string that contains the version of the data source to which the client is connected.

Namespace:   System.Data.Entity.Core.EntityClient
Assembly:  EntityFramework (in EntityFramework.dll)

[SuppressMessageAttribute("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
public override string ServerVersion { get; }

Property Value

Type: System.String

The version of the data source that is contained in the provider connection string.