mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 10:04:44 +00:00
Removes the USP_* stored procedures for Auth, Location, and Brewery data access in favour of services built with Dapper. Adds a new Features.Locations slice and optimistic concurrency support for the Brewery slice.
17 lines
598 B
C#
17 lines
598 B
C#
using Features.Locations.Dtos;
|
|
|
|
namespace Features.Locations.Repository;
|
|
|
|
/// <summary>
|
|
/// Resolves the Country/StateProvince/City location hierarchy shared by features that attach a
|
|
/// location to a record (e.g. brewery posts, and eventually user accounts).
|
|
/// </summary>
|
|
public interface ILocationRepository
|
|
{
|
|
/// <summary>
|
|
/// Resolves <paramref name="location" /> to a City ID, creating the Country, StateProvince,
|
|
/// and/or City rows if any part of the chain doesn't exist yet.
|
|
/// </summary>
|
|
Task<Guid> GetOrCreateCityIdAsync(CityLocation location);
|
|
}
|