Skip to content

Instantly share code, notes, and snippets.

@ChrisTowles
Created March 7, 2016 14:57
Show Gist options
  • Save ChrisTowles/a44208643f9e09fb39c8 to your computer and use it in GitHub Desktop.
Save ChrisTowles/a44208643f9e09fb39c8 to your computer and use it in GitHub Desktop.
Azure Mobile SDK Sync Base model for the client
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