dropping GCM support

This commit is contained in:
Paul Schneider 2019-05-08 01:35:10 +01:00
commit df9ff16c5c
36 changed files with 6228 additions and 149 deletions

View file

@ -4,7 +4,7 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Relationship
{
public class Contact
public class Contact: IContact
{
[Required()]
public string UserId { get; set; }
@ -15,7 +15,10 @@ namespace Yavsc.Models.Relationship
public string Name { get; set; }
public string EMail { get; set; }
public PostalAddress PostalAddress { get; set; }
public long AddressId { get ; set; }
[ForeignKey("AddressId")]
public virtual PostalAddress PostalAddress { get; set; }
[ForeignKeyAttribute("OwnerId"),NotMapped]

View file

@ -1,14 +1,21 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Relationship
{
/// <summary>
/// Well defined postal adress
/// </summary>
public class PostalAddress
{
public string Street1 { get; set; }
public string Street2 { get; set; }
public string PostalCode { get; set; }
public string City { get; set; }
public string State { get; set; }
public string Province { get; set; }
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
public string Street1 { get; set; }
public string Street2 { get; set; }
public string PostalCode { get; set; }
public string City { get; set; }
public string State { get; set; }
public string Province { get; set; }
public string Country { get; set; }
}
}