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

21 lines
607 B
C#
Raw Normal View History

2016-05-17 18:22:18 +02:00
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models
{
2016-07-20 13:52:38 +02:00
public partial class Circle: ICircle {
2016-05-17 18:22:18 +02:00
[Key, DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
public string Name { get; set; }
public string OwnerId { get; set; }
[ForeignKey("OwnerId")]
2016-07-20 13:52:38 +02:00
public virtual IApplicationUser Owner { get; set; }
2016-05-17 18:22:18 +02:00
[InverseProperty("Circle")]
2016-07-20 13:52:38 +02:00
public virtual IList<ICircleMember> Members { get; set; }
2016-05-17 18:22:18 +02:00
}
}