yavsc/Yavsc.Api/Model/Relationship/Contact.cs

18 lines
423 B
C#
Raw Normal View History

2016-05-17 18:22:18 +02:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models
{
2016-07-20 13:52:38 +02:00
public class Contact: IContact
2016-05-17 18:22:18 +02:00
{
[Required()]
public string UserId { get; set; }
[Required()]
public string OwnerId { get; set; }
[ForeignKeyAttribute("OwnerId")]
2016-07-20 13:52:38 +02:00
public virtual IApplicationUser Owner { get; set; }
2016-05-17 18:22:18 +02:00
}
}