ajout d'utilisateurs aux cercles
This commit is contained in:
parent
22b998887e
commit
b4436e5c06
18 changed files with 1564 additions and 211 deletions
|
|
@ -6,7 +6,7 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace Yavsc.Models.Relationship
|
||||
{
|
||||
public partial class Circle {
|
||||
public class Circle {
|
||||
[Key, DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -7,13 +7,16 @@ namespace Yavsc.Models.Relationship
|
|||
|
||||
public partial class CircleMember
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
|
||||
|
||||
[Required]
|
||||
public long CircleId { get; set; }
|
||||
|
||||
[ForeignKey("CircleId")]
|
||||
public virtual Circle Circle { get; set; }
|
||||
|
||||
[Required]
|
||||
public string MemberId { get; set; }
|
||||
|
||||
[ForeignKey("MemberId")]
|
||||
public virtual ApplicationUser Member { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue