Exemplo n.º 1
0
 public MyNoSqlIndex(string partitionKey, string rowKey, IMyNoSqlEntity tableEntity)
 {
     PartitionKey        = partitionKey;
     RowKey              = rowKey;
     PrimaryPartitionKey = tableEntity.PartitionKey;
     PrimaryRowKey       = tableEntity.RowKey;
 }
Exemplo n.º 2
0
        public static MyNoSqlIndex Create(
            string partitionKey,
            string rowKey,
            IMyNoSqlEntity tableEntity)
        {
            var azureIndex = new MyNoSqlIndex
            {
                PartitionKey        = partitionKey,
                RowKey              = rowKey,
                PrimaryPartitionKey = tableEntity.PartitionKey,
                PrimaryRowKey       = tableEntity.RowKey
            };

            return(azureIndex);
        }