Beispiel #1
0
        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;
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        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);
        }