Taylohtio/IDP/webapi/webapi.Domain/AggregatesModel/CondoMappingAggregate/CondoMapping.cs

51 lines
1.5 KiB
C#

using Microsoft.Azure.CosmosDB.Table;
using System;
using System.ComponentModel.DataAnnotations.Schema;
using webapi.Domain.SeedWork;
namespace webapi.Domain.AggregatesModel.FlatMappingAggregate
{
[Table("mdbCondoMappings")]
public class CondoMapping : Entity, IAggregateRoot
{
public CondoMapping() { }
public CondoMapping(Guid taloyhtioPMCId, Guid taloyhtioCondoId, string pmsCondoName, Guid id)
{
TaloyhtioPMCId = taloyhtioPMCId;
TaloyhtioCondoId = taloyhtioCondoId;
PMSCondoName = pmsCondoName;
Id = id;
PartitionKey = TaloyhtioPMCId.ToString();
//RowKey = Id.ToString();
}
//public string Key => $"{TaloyhtioPMCId}{TaloyhtioCondoId}";
/// <summary>
/// Id for identifying each mapping
/// </summary>
//private Guid _id;
//public Guid Id => _id;
//public Guid Id { get; set; }
/// <summary>
/// Condo name as it is stored in PMS
/// </summary>
//private readonly string _pmsCondoName;
public string PMSCondoName { get; set; }
/// <summary>
/// Id of PMC site collection in Taloyhtio.Info
/// </summary>
public Guid TaloyhtioPMCId { get; set; }
//private readonly Guid _taloyhtioPMCId;
/// <summary>
/// Id of condo web site in Taloyhtio.Info
/// </summary>
public Guid TaloyhtioCondoId { get; set; }
//private readonly Guid _taloyhtioCondoId;
}
}