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}";
///
/// Id for identifying each mapping
///
//private Guid _id;
//public Guid Id => _id;
//public Guid Id { get; set; }
///
/// Condo name as it is stored in PMS
///
//private readonly string _pmsCondoName;
public string PMSCondoName { get; set; }
///
/// Id of PMC site collection in Taloyhtio.Info
///
public Guid TaloyhtioPMCId { get; set; }
//private readonly Guid _taloyhtioPMCId;
///
/// Id of condo web site in Taloyhtio.Info
///
public Guid TaloyhtioCondoId { get; set; }
//private readonly Guid _taloyhtioCondoId;
}
}