Skip to content

Instantly share code, notes, and snippets.

@melkio
Created December 4, 2012 14:07
Show Gist options
  • Save melkio/4204266 to your computer and use it in GitHub Desktop.
Save melkio/4204266 to your computer and use it in GitHub Desktop.
public class BaseClass : TableEntity
{
public string PartitionKey { get; set; }
public string RowKey { get; set; }
public DateTimeOffset Timestamp { get; set; }
public string ETag { get; set; }
public BaseClass()
{
}
public BaseClass(String partitionKey, String rowKey) : base(partitionKey, rowKey)
{
}
public override IDictionary<String, EntityProperty> WriteEntity(OperationContext operationContext)
{
var properties = base.WriteEntity(operationContext);
var property = new EntityProperty(GetType().FullName);
properties.Add("Type", property);
return properties;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment