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-27 10:55:44 +02:00
|
|
|
|
public partial 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; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey("OwnerId")]
|
2016-07-27 10:55:44 +02:00
|
|
|
|
public virtual ApplicationUser Owner { get; set; }
|
2016-05-17 18:22:18 +02:00
|
|
|
|
|
|
|
|
|
|
[InverseProperty("Circle")]
|
2016-07-27 10:55:44 +02:00
|
|
|
|
public virtual List<CircleMember> Members { get; set; }
|
2016-05-17 18:22:18 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|