mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 10:04:44 +00:00
- Introduced new BeerPost entity and updated BreweryPost and BreweryPostLocation entities to use 'RowVersion' for concurrency. - Modified UserAccount, UserCredential, UserVerification, City, StateProvince, and Country entities to use 'RowVersion' instead of 'Timer'. - Updated tests and command handlers to reflect changes in concurrency token from 'Timer' to 'RowVersion'. - Adjusted BreweryDto and BreweryDtoMapper to include 'RowVersion' and updated mapping logic accordingly. - Ensured all repository methods and interfaces are aligned with the new concurrency handling approach.
24 lines
598 B
C#
24 lines
598 B
C#
namespace Domain.Entities;
|
|
|
|
public sealed class BreweryPostLocation
|
|
{
|
|
// PK
|
|
public Guid BreweryPostLocationId { get; set; }
|
|
|
|
// FK References
|
|
public Guid BreweryPostId { get; set; }
|
|
public Guid CityId { get; set; }
|
|
|
|
// Attributes
|
|
public string AddressLine1 { get; set; } = string.Empty;
|
|
public string? AddressLine2 { get; set; }
|
|
public string PostalCode { get; set; } = string.Empty;
|
|
public byte[]? Coordinates { get; set; }
|
|
|
|
// Audit Fields
|
|
public byte[]? RowVersion { get; set; }
|
|
|
|
// Navigation Properties
|
|
public City? City { get; set; }
|
|
}
|