src/Shared/EntityFramework/Spatial/SpatialServicesLoader.cs
// <summary>
// Ask for a spatial provider. If one has been registered then we will use it, otherwise we will
// fall back on using the SQL provider and if this is not available then the default provider.
// </summary>
Ask for a spatial provider. If one has been registered then we will use it, otherwise we will
fall back on using the SQL provider and if this is not available then the default provider.
Ask for a spatial provider . If one has been registered then we will use it otherwise we will fall back on using the SQL provider and if this is not available then the default provider .
public virtual DbSpatialServices LoadDefaultServices()
        {
            var spatialProvider = _resolver.GetService<DbSpatialServices>();
            if (spatialProvider != null)
            {
                return spatialProvider;
            }
            spatialProvider = _resolver.GetService<DbSpatialServices>(new DbProviderInfo("System.Data.SqlClient", "2012"));
            if (spatialProvider != null && spatialProvider.NativeTypesAvailable)
            {
                return spatialProvider;
            }
            return DefaultSpatialServices.Instance;
        }
public virtual DbSpatialServices LoadDefaultServices ( ) { var spatialProvider = _resolver . GetService < DbSpatialServices > ( ) ; if ( spatialProvider != null ) { return spatialProvider ; } spatialProvider = _resolver . GetService < DbSpatialServices > ( new DbProviderInfo ( " " , " " ) ) ; if ( spatialProvider != null && spatialProvider . NativeTypesAvailable ) { return spatialProvider ; } return DefaultSpatialServices . Instance ; }
Ask for a spatial provider.
Ask for a spatial provider .