2016-07-30 22:51:19 +02:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2016-08-03 23:25:57 +02:00
|
|
|
using Newtonsoft.Json;
|
2016-07-30 22:51:19 +02:00
|
|
|
|
2017-01-19 12:59:49 +01:00
|
|
|
namespace Yavsc.Models.Relationship
|
2016-07-30 22:51:19 +02:00
|
|
|
{
|
2019-05-08 01:35:10 +01:00
|
|
|
public class Contact: IContact
|
2016-07-30 22:51:19 +02:00
|
|
|
{
|
2024-11-06 13:00:34 +00:00
|
|
|
[Required()]
|
2016-07-30 22:51:19 +02:00
|
|
|
public string UserId { get; set; }
|
|
|
|
|
|
2024-11-06 13:00:34 +00:00
|
|
|
[Required()]
|
2016-07-30 22:51:19 +02:00
|
|
|
public string OwnerId { get; set; }
|
|
|
|
|
|
2019-05-07 14:01:23 +01:00
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string EMail { get; set; }
|
|
|
|
|
|
2019-05-08 01:35:10 +01:00
|
|
|
public long AddressId { get ; set; }
|
|
|
|
|
|
|
|
|
|
[ForeignKey("AddressId")]
|
|
|
|
|
public virtual PostalAddress PostalAddress { get; set; }
|
2019-05-07 14:01:23 +01:00
|
|
|
|
|
|
|
|
|
2024-11-06 13:00:34 +00:00
|
|
|
[ForeignKey("OwnerId"),NotMapped]
|
2016-07-30 22:51:19 +02:00
|
|
|
public virtual ApplicationUser Owner { get; set; }
|
2016-09-23 12:32:57 +02:00
|
|
|
|
2024-11-06 13:00:34 +00:00
|
|
|
[ForeignKey("UserId"),NotMapped]
|
2016-09-23 12:32:57 +02:00
|
|
|
public virtual ApplicationUser User { get; set; }
|
2016-07-30 22:51:19 +02:00
|
|
|
}
|
|
|
|
|
}
|