﻿using TechSmith.Hyde.Common.DataAnnotations;

namespace TechSmith.Hyde.IntegrationTest
{
   /// <summary>
   /// Class with decorated partition and row key properties, for testing purposes.
   /// </summary>
   class DecoratedItem
   {
      [PartitionKey]
      public string Id
      {
         get;
         set;
      }

      [RowKey]
      public string Name
      {
         get;
         set;
      }

      public int Age
      {
         get;
         set;
      }
   }

   class DecoratedItemEntity : Microsoft.WindowsAzure.Storage.Table.TableEntity
   {
      public string Id
      {
         get;
         set;
      }

      public string Name
      {
         get;
         set;
      }

      public int Age
      {
         get;
         set;
      }
   }
}

﻿using System.Data.Services.Common;
using TechSmith.Hyde.Common.DataAnnotations;

namespace TechSmith.Hyde.IntegrationTest
{
   /// <summary>
   /// Class with decorated partition and row key properties, for testing purposes.
   /// </summary>
   class DecoratedItem
   {
      [PartitionKey]
      public string Id
      {
         get;
         set;
      }

      [RowKey]
      public string Name
      {
         get;
         set;
      }

      public int Age
      {
         get;
         set;
      }
   }

   [DataServiceKey( "PartitionKey", "RowKey")]
   class DecoratedItemEntity : Microsoft.WindowsAzure.Storage.Table.TableEntity
   {
      public string Id
      {
         get;
         set;
      }

      public string Name
      {
         get;
         set;
      }

      public int Age
      {
         get;
         set;
      }
   }
}

Update test entity with attribute to denote partition/row key
Update test entity with attribute to denote partition/row key
