private static EntityNk EntityGenerator(long n) { #if SINGLE_PARTITION var partitionKey = "000000000000"; #else var partitionKey = string.Format("{0:D12}", n % 10); #endif var e = new EntityNk(partitionKey, Guid.NewGuid().ToString() + "-" + n.ToString("D12")); return e; }
private static EntityNk EntityGenerator(long n) { #if SINGLE_PARTITION var partitionKey = "000000000000"; #else var partitionKey = string.Format("{0:D12}", n % 10); #endif var e = new EntityNk(partitionKey, Guid.NewGuid().ToString() + "-" + n.ToString("D12")); return(e); }
private static EntityNk[] EntityGenerator(long n) { #if SINGLE_PARTITION var partitionKey = "000000000000"; #else var partitionKey = string.Format("{0:D12}", n % 10); #endif var result = new EntityNk[100]; for (var i = 0; i < 100; i++) { var e = new EntityNk(partitionKey, Guid.NewGuid().ToString() + "-" + n.ToString("D12")); result[i] = e; } return result; }
private static EntityNk[] EntityGenerator(long n) { #if SINGLE_PARTITION var partitionKey = "000000000000"; #else var partitionKey = string.Format("{0:D12}", n % 10); #endif var result = new EntityNk[100]; for (var i = 0; i < 100; i++) { var e = new EntityNk(partitionKey, Guid.NewGuid().ToString() + "-" + n.ToString("D12")); result[i] = e; } return(result); }