public static void SetPartitionRowKeys(CatalogEntity entity) { entity.PartitionKey = TableDataAccess.ValidateRowPartitionKey(entity.Organization, true); long ticks = DateTime.MaxValue.Ticks - entity.StartTime.Ticks; entity.RowKey = TableDataAccess.ValidateRowPartitionKey(ticks.ToString(), false); }
public static void SetOtherByPartitionRowKeys(CatalogEntity entity) { entity.StartTime = new DateTime(DateTime.MaxValue.Ticks - Convert.ToInt64(entity.RowKey)); entity.Organization = entity.RowKey; }