C# Класс Engage.Dnn.Locator.Data.DataProvider

An abstract representation of the data access for Engage: Locator
Показать файл Открыть проект

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

Метод Описание
AddAttribute ( int attributeDefinitionId, int locationId, string attributeValue ) : void
AddAttributeDefinition ( int portalId, int locationTypeId, int dataType, string defaultValue, string attributeName, bool required, string validationExpression, int viewOrder, bool visible, int length ) : int
ClearLocations ( int portalId ) : void
ClearTempLocations ( ) : void
CopyData ( ) : string
DeleteAttributeDefinition ( int definitionId ) : void
DeleteComment ( int commentId ) : void
DeleteLocation ( int locationId ) : void
DeleteLocationType ( int locationTypeId ) : void
GetAllLocations ( int portalId, bool approved, string sortColumn, int index, int pageSize ) : DataTable
GetAllLocationsByDistance ( double latitude, double longitude, int radius, int portalId, int locationTypeIds, int pageIndex, int pageSize ) : IDataReader

Gets a list of the locations in the given locationTypeIds, ordered by their distance from the given coordinates

GetAllLocationsByType ( int portalId, int locationTypeIds, int pageIndex, int pageSize ) : IDataReader

Gets a list of the locations in the given locationTypeIds.

GetAttributeDefinition ( int definitionId ) : IDataReader
GetAttributeDefinitionByName ( int locationTypeId, string name ) : IDataReader
GetAttributeDefinitions ( int locationTypeId ) : DataTable
GetAttributeDefinitionsById ( int locationTypeId ) : IDataReader
GetAttributeValues ( int locationId ) : DataTable
GetComment ( int commentId ) : Comment
GetComments ( int locationId, bool approved ) : DataSet
GetCountriesList ( int portalId ) : DataTable
GetEmailByFileId ( int fileId ) : DataTable
GetEngageLocatorTabModules ( int portalId ) : DataTable
GetFilesToImport ( ) : DataTable
GetImportedLocationStatistics ( int portalId ) : DataTable
GetLastImportIndex ( ) : int
GetLatitudeLongitude ( string address, string city ) : DataTable
GetLocation ( int locationId ) : IDataReader
GetLocationType ( int id ) : DataTable
GetLocationTypeCount ( string type ) : int
GetLocationTypeName ( int id ) : DataTable
GetLocationTypes ( ) : DataTable
GetLocations ( int typeId, int portalId ) : DataTable
GetLocationsByCountry ( int countryId, int portalId, int pageIndex, int pageSize ) : IDataReader

Gets the locations in a given country.

GetNClosestLocations ( double latitude, double longitude, int count, int portalId ) : DataTable
GetNewSubmittedComments ( int portalId, bool approved ) : DataTable
GetTabModuleIdByFileId ( int fileId ) : int
InsertComment ( int locationId, string comment, string submittedBy, bool approved ) : void
InsertFileInfo ( int fileId, int userId, int tabModuleId, int portalId, System.DateTime uploadDate, bool succeeded, bool processed ) : void
InsertLocationType ( string locationTypeName ) : int
SaveComment ( Comment comment ) : void
SaveLocation ( Location loc ) : int
SaveTempLocation ( Location loc, bool successful ) : int
UpdateAttribute ( int attributeDefinitionId, int locationId, string attributeValue ) : void
UpdateAttributeDefinition ( int definitionId, int dataType, string defaultValue, string attributeName, bool required, string validationExpression, int viewOrder, bool visible, int length ) : int
UpdateComment ( int locationId, string comment, string submittedBy, bool approved, int userId ) : void
UpdateImportedLocationRow ( int fileId ) : void
UpdateLocation ( Location loc ) : int
UpdateLocationType ( int locationTypeId, string locationTypeName ) : void

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

Метод Описание
GetConnectionString ( ) : string

Gets the configured connection string for this site's data provider.

Instance ( ) : DataProvider

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

AddAttribute() публичный абстрактный Метод

public abstract AddAttribute ( int attributeDefinitionId, int locationId, string attributeValue ) : void
attributeDefinitionId int
locationId int
attributeValue string
Результат void

AddAttributeDefinition() публичный абстрактный Метод

public abstract AddAttributeDefinition ( int portalId, int locationTypeId, int dataType, string defaultValue, string attributeName, bool required, string validationExpression, int viewOrder, bool visible, int length ) : int
portalId int
locationTypeId int
dataType int
defaultValue string
attributeName string
required bool
validationExpression string
viewOrder int
visible bool
length int
Результат int

ClearLocations() публичный абстрактный Метод

public abstract ClearLocations ( int portalId ) : void
portalId int
Результат void

ClearTempLocations() публичный абстрактный Метод

public abstract ClearTempLocations ( ) : void
Результат void

CopyData() публичный абстрактный Метод

public abstract CopyData ( ) : string
Результат string

DeleteAttributeDefinition() публичный абстрактный Метод

public abstract DeleteAttributeDefinition ( int definitionId ) : void
definitionId int
Результат void

DeleteComment() публичный абстрактный Метод

public abstract DeleteComment ( int commentId ) : void
commentId int
Результат void

DeleteLocation() публичный абстрактный Метод

public abstract DeleteLocation ( int locationId ) : void
locationId int
Результат void

DeleteLocationType() публичный абстрактный Метод

public abstract DeleteLocationType ( int locationTypeId ) : void
locationTypeId int
Результат void

GetAllLocations() публичный абстрактный Метод

public abstract GetAllLocations ( int portalId, bool approved, string sortColumn, int index, int pageSize ) : DataTable
portalId int
approved bool
sortColumn string
index int
pageSize int
Результат System.Data.DataTable

GetAllLocationsByDistance() публичный абстрактный Метод

Gets a list of the locations in the given locationTypeIds, ordered by their distance from the given coordinates
public abstract GetAllLocationsByDistance ( double latitude, double longitude, int radius, int portalId, int locationTypeIds, int pageIndex, int pageSize ) : IDataReader
latitude double The latitude of the search location.
longitude double The longitude of the search location.
radius int
portalId int The portal ID.
locationTypeIds int The IDs of the types of locations to retrieve.
pageIndex int Index of the page, or null if not paging.
pageSize int Size of the page, or null if not paging.
Результат IDataReader

GetAllLocationsByType() публичный абстрактный Метод

Gets a list of the locations in the given locationTypeIds.
public abstract GetAllLocationsByType ( int portalId, int locationTypeIds, int pageIndex, int pageSize ) : IDataReader
portalId int The portal ID.
locationTypeIds int The IDs of the types of locations to retrieve.
pageIndex int Index of the page, or null if not paging.
pageSize int Size of the page, or null if not paging.
Результат IDataReader

GetAttributeDefinition() публичный абстрактный Метод

public abstract GetAttributeDefinition ( int definitionId ) : IDataReader
definitionId int
Результат IDataReader

GetAttributeDefinitionByName() публичный абстрактный Метод

public abstract GetAttributeDefinitionByName ( int locationTypeId, string name ) : IDataReader
locationTypeId int
name string
Результат IDataReader

GetAttributeDefinitions() публичный абстрактный Метод

public abstract GetAttributeDefinitions ( int locationTypeId ) : DataTable
locationTypeId int
Результат System.Data.DataTable

GetAttributeDefinitionsById() публичный абстрактный Метод

public abstract GetAttributeDefinitionsById ( int locationTypeId ) : IDataReader
locationTypeId int
Результат IDataReader

GetAttributeValues() публичный абстрактный Метод

public abstract GetAttributeValues ( int locationId ) : DataTable
locationId int
Результат System.Data.DataTable

GetComment() публичный абстрактный Метод

public abstract GetComment ( int commentId ) : Comment
commentId int
Результат Comment

GetComments() публичный абстрактный Метод

public abstract GetComments ( int locationId, bool approved ) : DataSet
locationId int
approved bool
Результат System.Data.DataSet

GetCountriesList() публичный абстрактный Метод

public abstract GetCountriesList ( int portalId ) : DataTable
portalId int
Результат System.Data.DataTable

GetEmailByFileId() публичный абстрактный Метод

public abstract GetEmailByFileId ( int fileId ) : DataTable
fileId int
Результат System.Data.DataTable

GetEngageLocatorTabModules() публичный абстрактный Метод

public abstract GetEngageLocatorTabModules ( int portalId ) : DataTable
portalId int
Результат System.Data.DataTable

GetFilesToImport() публичный абстрактный Метод

public abstract GetFilesToImport ( ) : DataTable
Результат System.Data.DataTable

GetImportedLocationStatistics() публичный абстрактный Метод

public abstract GetImportedLocationStatistics ( int portalId ) : DataTable
portalId int
Результат System.Data.DataTable

GetLastImportIndex() публичный абстрактный Метод

public abstract GetLastImportIndex ( ) : int
Результат int

GetLatitudeLongitude() публичный абстрактный Метод

public abstract GetLatitudeLongitude ( string address, string city ) : DataTable
address string
city string
Результат System.Data.DataTable

GetLocation() публичный абстрактный Метод

public abstract GetLocation ( int locationId ) : IDataReader
locationId int
Результат IDataReader

GetLocationType() публичный абстрактный Метод

public abstract GetLocationType ( int id ) : DataTable
id int
Результат System.Data.DataTable

GetLocationTypeCount() публичный абстрактный Метод

public abstract GetLocationTypeCount ( string type ) : int
type string
Результат int

GetLocationTypeName() публичный абстрактный Метод

public abstract GetLocationTypeName ( int id ) : DataTable
id int
Результат System.Data.DataTable

GetLocationTypes() публичный абстрактный Метод

public abstract GetLocationTypes ( ) : DataTable
Результат System.Data.DataTable

GetLocations() публичный абстрактный Метод

public abstract GetLocations ( int typeId, int portalId ) : DataTable
typeId int
portalId int
Результат System.Data.DataTable

GetLocationsByCountry() публичный абстрактный Метод

Gets the locations in a given country.
public abstract GetLocationsByCountry ( int countryId, int portalId, int pageIndex, int pageSize ) : IDataReader
countryId int The country ID.
portalId int The portal ID.
pageIndex int Index of the page, or null if not paging.
pageSize int Size of the page, or null if not paging.
Результат IDataReader

GetNClosestLocations() публичный абстрактный Метод

public abstract GetNClosestLocations ( double latitude, double longitude, int count, int portalId ) : DataTable
latitude double
longitude double
count int
portalId int
Результат System.Data.DataTable

GetNewSubmittedComments() публичный абстрактный Метод

public abstract GetNewSubmittedComments ( int portalId, bool approved ) : DataTable
portalId int
approved bool
Результат System.Data.DataTable

GetTabModuleIdByFileId() публичный абстрактный Метод

public abstract GetTabModuleIdByFileId ( int fileId ) : int
fileId int
Результат int

InsertComment() публичный абстрактный Метод

public abstract InsertComment ( int locationId, string comment, string submittedBy, bool approved ) : void
locationId int
comment string
submittedBy string
approved bool
Результат void

InsertFileInfo() публичный абстрактный Метод

public abstract InsertFileInfo ( int fileId, int userId, int tabModuleId, int portalId, System.DateTime uploadDate, bool succeeded, bool processed ) : void
fileId int
userId int
tabModuleId int
portalId int
uploadDate System.DateTime
succeeded bool
processed bool
Результат void

InsertLocationType() публичный абстрактный Метод

public abstract InsertLocationType ( string locationTypeName ) : int
locationTypeName string
Результат int

SaveComment() публичный абстрактный Метод

public abstract SaveComment ( Comment comment ) : void
comment Comment
Результат void

SaveLocation() публичный абстрактный Метод

public abstract SaveLocation ( Location loc ) : int
loc Location
Результат int

SaveTempLocation() публичный абстрактный Метод

public abstract SaveTempLocation ( Location loc, bool successful ) : int
loc Location
successful bool
Результат int

UpdateAttribute() публичный абстрактный Метод

public abstract UpdateAttribute ( int attributeDefinitionId, int locationId, string attributeValue ) : void
attributeDefinitionId int
locationId int
attributeValue string
Результат void

UpdateAttributeDefinition() публичный абстрактный Метод

public abstract UpdateAttributeDefinition ( int definitionId, int dataType, string defaultValue, string attributeName, bool required, string validationExpression, int viewOrder, bool visible, int length ) : int
definitionId int
dataType int
defaultValue string
attributeName string
required bool
validationExpression string
viewOrder int
visible bool
length int
Результат int

UpdateComment() публичный абстрактный Метод

public abstract UpdateComment ( int locationId, string comment, string submittedBy, bool approved, int userId ) : void
locationId int
comment string
submittedBy string
approved bool
userId int
Результат void

UpdateImportedLocationRow() публичный абстрактный Метод

public abstract UpdateImportedLocationRow ( int fileId ) : void
fileId int
Результат void

UpdateLocation() публичный абстрактный Метод

public abstract UpdateLocation ( Location loc ) : int
loc Location
Результат int

UpdateLocationType() публичный абстрактный Метод

public abstract UpdateLocationType ( int locationTypeId, string locationTypeName ) : void
locationTypeId int
locationTypeName string
Результат void