refabrique
This commit is contained in:
parent
33dbed8b90
commit
817c1c151f
34 changed files with 3476 additions and 35 deletions
|
|
@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public partial class Circle {
|
||||
public partial class Circle: ICircle {
|
||||
[Key, DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
|
||||
|
|
@ -13,9 +13,9 @@ namespace Yavsc.Models
|
|||
public string OwnerId { get; set; }
|
||||
|
||||
[ForeignKey("OwnerId")]
|
||||
public virtual ApplicationUser Owner { get; set; }
|
||||
public virtual IApplicationUser Owner { get; set; }
|
||||
|
||||
[InverseProperty("Circle")]
|
||||
public virtual List<CircleMember> Members { get; set; }
|
||||
public virtual IList<ICircleMember> Members { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class Contact
|
||||
public class Contact: IContact
|
||||
{
|
||||
[Required()]
|
||||
public string UserId { get; set; }
|
||||
|
|
@ -13,6 +13,6 @@ namespace Yavsc.Models
|
|||
public string OwnerId { get; set; }
|
||||
|
||||
[ForeignKeyAttribute("OwnerId")]
|
||||
public virtual ApplicationUser Owner { get; set; }
|
||||
public virtual IApplicationUser Owner { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace Yavsc
|
|||
/// <summary>
|
||||
/// Position.
|
||||
/// </summary>
|
||||
public class Position
|
||||
public class Position: IPosition
|
||||
{
|
||||
/// <summary>
|
||||
/// The longitude.
|
||||
|
|
@ -27,7 +27,7 @@ namespace Yavsc
|
|||
|
||||
}
|
||||
|
||||
public class Location : Position {
|
||||
public class Location : Position, ILocation {
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
[Required(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue