示例#1
0
        public static MyNoSqlIndex Create(
            string partitionKey,
            string rowKey,
            IMyNoSqlDbEntity tableEntity)
        {
            var azureIndex = new MyNoSqlIndex
            {
                PartitionKey        = partitionKey,
                RowKey              = rowKey,
                PrimaryPartitionKey = tableEntity.PartitionKey,
                PrimaryRowKey       = tableEntity.RowKey
            };

            return(azureIndex);
        }
示例#2
0
        public static MyNoSqlIndex Create(
            string partitionKey,
            string rowKey,
            string primaryPartitionKey,
            string primaryRowKey)
        {
            var azureIndex = new MyNoSqlIndex
            {
                PartitionKey        = partitionKey,
                RowKey              = rowKey,
                PrimaryPartitionKey = primaryPartitionKey,
                PrimaryRowKey       = primaryRowKey
            };

            return(azureIndex);
        }