yavsc/Yavsc.Server/Models/Relationship/Circle.cs

22 lines
655 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;
2016-08-03 23:25:57 +02:00
using Newtonsoft.Json;
2016-05-17 18:22:18 +02:00
2017-01-19 12:59:49 +01:00
namespace Yavsc.Models.Relationship
2016-05-17 18:22:18 +02:00
{
2017-01-22 18:32:49 +01:00
public class Circle {
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; }
2016-09-05 11:54:13 +02:00
[ForeignKey("OwnerId"),JsonIgnore,NotMapped]
2016-07-27 10:55:44 +02:00
public virtual ApplicationUser Owner { get; set; }
2016-05-17 18:22:18 +02:00
2017-06-08 00:26:29 +02:00
[InverseProperty("Circle"),JsonIgnore]
2016-07-27 10:55:44 +02:00
public virtual List<CircleMember> Members { get; set; }
2016-05-17 18:22:18 +02:00
}
}