C# Класс MapAround.DataProviders.SqlSpatialDataProvider

Maparound.DataProviders.SqlSpatialDataProvider is the base class for the spatial data providers from SQL servers which hasn't native spatial data types and functions.
Наследование: SpatialDataProviderBase
Показать файл Открыть проект

Открытые методы

Метод Описание
FillDataTable ( IEnumerable features ) : void

Fills a data table with features.

QueryFeatures ( IFeatureReceiver receiver ) : int

Adds features retrieved from the data source to the receiver.

QueryFeatures ( IFeatureReceiver receiver, BoundingRectangle bounds ) : int

Adds features retrieved from the data source to the receiver.

Защищенные методы

Метод Описание
GetCommand ( ) : DbCommand

Gets a DbCommand corresponding to the sql server with assighed connection.

InternalQueryFeatures ( IFeatureReceiver fr, string commandText ) : int

Adds features from the command to the receiver.

Приватные методы

Метод Описание
addFeatureToReceiver ( IFeatureReceiver fr, string uniqKey, string title, byte spatialData ) : bool
addParameter ( DbCommand command, string paramName, object paramValue ) : void
getBoundsConditionString ( BoundingRectangle bounds ) : string
getSelectString ( ) : string
getSelectString ( BoundingRectangle bounds ) : string
insertFeatureIntoDataTable ( Feature feature, DbCommand command ) : void

Описание методов

FillDataTable() публичный Метод

Fills a data table with features.
public FillDataTable ( IEnumerable features ) : void
features IEnumerable Enumarator of features
Результат void

GetCommand() защищенный абстрактный Метод

Gets a DbCommand corresponding to the sql server with assighed connection.
protected abstract GetCommand ( ) : DbCommand
Результат System.Data.Common.DbCommand

InternalQueryFeatures() защищенный Метод

Adds features from the command to the receiver.
protected InternalQueryFeatures ( IFeatureReceiver fr, string commandText ) : int
fr IFeatureReceiver Object that receives features
commandText string Sql command text
Результат int

QueryFeatures() публичный Метод

Adds features retrieved from the data source to the receiver.
public QueryFeatures ( IFeatureReceiver receiver ) : int
receiver IFeatureReceiver An object that receives features
Результат int

QueryFeatures() публичный Метод

Adds features retrieved from the data source to the receiver.
public QueryFeatures ( IFeatureReceiver receiver, BoundingRectangle bounds ) : int
receiver IFeatureReceiver An object that receives features
bounds BoundingRectangle Rectangular region you want to fill with the objects
Результат int