refact and login
This commit is contained in:
parent
acc34aeee4
commit
e042e34bf7
78 changed files with 2492 additions and 50576 deletions
|
|
@ -14,10 +14,10 @@ namespace Yavsc.Models.Relationship
|
|||
|
||||
public bool Public { get; set; }
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string OwnerId { get; set; }
|
||||
|
||||
[ForeignKey("OwnerId"),JsonIgnore,NotMapped]
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@ namespace Yavsc.Models.Relationship
|
|||
public partial class CircleMember
|
||||
{
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public long CircleId { get; set; }
|
||||
|
||||
[ForeignKey("CircleId")]
|
||||
public virtual Circle Circle { get; set; }
|
||||
|
||||
[YaRequired]
|
||||
[Required]
|
||||
public string MemberId { get; set; }
|
||||
|
||||
[ForeignKey("MemberId")]
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace Yavsc.Models.Relationship
|
|||
{
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
[YaRequired()]
|
||||
[Required()]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue