Skip to content

Instantly share code, notes, and snippets.

View ChrisTowles's full-sized avatar

Chris Towles ChrisTowles

View GitHub Profile
@ChrisTowles
ChrisTowles / AzureServerSyncModelBase.cs
Created March 7, 2016 14:58
Azure Mobile SDK Base Model for Sync Entity
using Microsoft.Azure.Mobile.Server.Tables;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace Ecrumbs.Service.Data
{
@ChrisTowles
ChrisTowles / AzureClientSyncModelBase.cs
Created March 7, 2016 14:57
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();
@ChrisTowles
ChrisTowles / ActivityProfile.cs
Created March 1, 2016 15:29
Azure Mobile Sync Model - Client
using Microsoft.WindowsAzure.MobileServices;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Ecrumbs.Shared.Models
{
public class ActivityProfile
{
@ChrisTowles
ChrisTowles / ActivityProfileDto.cs
Last active March 1, 2016 15:30
Azure Mobile Sync Model - Server
using Microsoft.Azure.Mobile.Server;
using Microsoft.Azure.Mobile.Server.Tables;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Ecrumbs.Models.DataObjects
{
public class ActivityProfileDto : ITableData
{
public string AccountId { get; set; }