This commit is contained in:
parent
46f5c107b8
commit
fa34ed249b
233 changed files with 4000 additions and 1396 deletions
|
|
@ -1,36 +0,0 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models;
|
||||
|
||||
public class GoogleCloudMobileDeclaration {
|
||||
[Key]
|
||||
|
||||
public string RegistrationId { get; set; }
|
||||
|
||||
public string DeviceOwnerId { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
[ForeignKeyAttribute("DeviceOwnerId")]
|
||||
public virtual ApplicationUser DeviceOwner { get; set; }
|
||||
|
||||
// override object.Equals
|
||||
public override bool Equals (object obj)
|
||||
{
|
||||
if (obj == null || GetType() != obj.GetType())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var other = obj as GoogleCloudMobileDeclaration;
|
||||
return RegistrationId == other.RegistrationId
|
||||
&& Name == other.Name;
|
||||
}
|
||||
|
||||
// override object.GetHashCode
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return (RegistrationId+Name).GetHashCode();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue