Created
December 4, 2012 14:07
-
-
Save melkio/4204266 to your computer and use it in GitHub Desktop.
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
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