yavsc/Yavsc/Model/Relationship/Contact.cs

18 lines
412 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-27 10:55:44 +02:00
public class Contact
2016-05-17 18:22:18 +02:00
{
[Required()]
public string UserId { get; set; }
[Required()]
public string OwnerId { get; set; }
[ForeignKeyAttribute("OwnerId")]
2016-07-27 10:55:44 +02:00
public virtual ApplicationUser Owner { get; set; }
2016-05-17 18:22:18 +02:00
}
}