예제 #1
0
 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);
 }
예제 #2
0
 public static void SetOtherByPartitionRowKeys(CatalogEntity entity)
 {
     entity.StartTime = new DateTime(DateTime.MaxValue.Ticks - Convert.ToInt64(entity.RowKey));
     entity.Organization = entity.RowKey;
 }