This commit is contained in:
Paul Schneider 2026-02-14 16:54:27 +00:00
commit 45514010f2
3505 changed files with 154 additions and 523 deletions

View file

@ -1,31 +0,0 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using Yavsc.Attributes.Validation;
namespace Yavsc.Models.Relationship
{
public class Contact: IContact
{
[Required()]
public string UserId { get; set; }
[Required()]
public string OwnerId { get; set; }
public string Name { get; set; }
public string EMail { get; set; }
public long AddressId { get ; set; }
[ForeignKey("AddressId")]
public virtual PostalAddress PostalAddress { get; set; }
[ForeignKey("OwnerId"),NotMapped]
public virtual ApplicationUser Owner { get; set; }
[ForeignKey("UserId"),NotMapped]
public virtual ApplicationUser User { get; set; }
}
}