Created
March 7, 2016 14:57
-
-
Save ChrisTowles/a44208643f9e09fb39c8 to your computer and use it in GitHub Desktop.
Azure Mobile SDK Sync Base model for the client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.WindowsAzure.MobileServices; | |
using System; | |
namespace Ecrumbs.Shared.Models | |
{ | |
public class AzureClientSyncModelBase | |
{ | |
public AzureClientSyncModelBase() | |
{ | |
Id = Guid.NewGuid().ToString(); | |
} | |
public DateTimeOffset DeviceCreatedAt { get; set; } | |
#region Azure Sync Properties | |
public string Id { get; set; } | |
[CreatedAt] | |
public DateTimeOffset? CreatedAt { get; set; } | |
[UpdatedAt] | |
public DateTimeOffset? UpdatedAt { get; set; } | |
[Deleted] | |
public bool Deleted { get; set; } | |
[Version] | |
public string Version { get; set; } | |
#endregion Azure Sync Properties | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment