Skip to main content

Jupiter.Market.Elastic.Comparables.Services.DataService

See the detailed conceptual article: articles/data-service-logic

Methods

#ctor

Initializes a new instance of the class.

Parameters:

  • esOptions: Elasticsearch settings ().
  • pgOptions: PostgreSQL settings ().
  • indexerOptions: Indexer settings ().
  • logger: The logger instance ().
  • loggerHelper: The logger helper for conditional logging ().

Jupiter.Market.Elastic.Comparables.Services.DataService.InitAsync

No summary available.

Registers composite types and type handlers for Dapper/Npgsql. See and , .

GetConnectionAsync

No summary available.

Parameters:

  • cancellationToken: Cancellation token.

Returns: An open .

See Also:

RunQueryAsync``1

No summary available.

Type Parameters:

  • $tpName: The result type.

Parameters:

  • query: The SQL query string.
  • parameters: Query parameters.
  • useRetry: Whether to use retry logic.
  • cancellationToken: Cancellation token.

Returns: The query results as .

RunQueryByKeyAsync``1

Executes a named query from and returns the results.

Type Parameters:

  • $tpName: The result type.

Parameters:

  • queryKey: The query key (see ).
  • parameters: Query parameters.
  • useRetry: Whether to use retry logic.
  • cancellationToken: Cancellation token.

Returns: The query results as .

GetDealReferenceByIdAsync

Gets a deal reference by deal ID, mapping the result to a .

Parameters:

  • dealId: The deal ID.
  • cancellationToken: Cancellation token.

Returns: The or null if not found.

See Also:

NormalizePostgresArray

No summary available.

Parameters:

  • input: The input array, possibly in Postgres array string format.

See Also:

GetGroupedByDealUprnIdAsync``1

No summary available.

Type Parameters:

  • $tpName: The result type.

Parameters:

  • key: The query key.
  • parameters: Query parameters.
  • spatial: Whether the query is spatial.
  • idSelector: Function to select the grouping key.
  • cancellationToken: Cancellation token.

See Also:

GetGroupedByDealTitleIdAsync``1

No summary available.

Type Parameters:

  • $tpName: The result type.

Parameters:

  • key: The query key.
  • parameters: Query parameters.
  • spatial: Whether the query is spatial.
  • idSelector: Function to select the grouping key.
  • cancellationToken: Cancellation token.

See Also:

GetListingComparablesForDealUprnSingleAsync

No summary available.

See and for mapping logic.

Parameters:

  • dealId: The deal ID.
  • uprnId: The UPRN ID.
  • housePriceIndicesByRegion: House price indices by region.
  • postcodesByValue: Postcodes by value.
  • cancellationToken: Cancellation token.

GetSaleComparablesForDealUprnSingleAsync

No summary available.

See and for mapping logic.

Parameters:

  • dealId: The deal ID.
  • uprnId: The UPRN ID.
  • housePriceIndicesByRegion: House price indices by region.
  • postcodesByValue: Postcodes by value.
  • cancellationToken: Cancellation token.

GetLeaseComparablesForDealUprnSingleAsync

No summary available.

See and for mapping logic.

Parameters:

  • dealId: The deal ID.
  • uprnId: The UPRN ID.
  • housePriceIndicesByRegion: House price indices by region.
  • postcodesByValue: Postcodes by value.
  • cancellationToken: Cancellation token.

GetListingComparablesForDealTitleSingleAsync

No summary available.

See and for mapping logic.

Parameters:

  • dealId: The deal ID.
  • titleId: The Title ID.
  • housePriceIndicesByRegion: House price indices by region.
  • postcodesByValue: Postcodes by value.
  • cancellationToken: Cancellation token.

GetAllHousePriceIndicesAsync

No summary available.

Parameters:

  • cancellationToken: Cancellation token.

Returns: A list of objects.

See Also:

CalculateIndexedPrice

Calculates the indexed price for a using house price indices and postcode data.

Parameters:

  • comparable: The comparable to update.
  • housePriceIndicesByRegion: House price indices by region.
  • postcodesByValue: Postcodes by value.

See Also:

Build StatusBuild #20251224.44 | Commit: 2544997 | Branch: HEAD | Built: 12/24/2025, 4:40:09 PM