AzureStorageExplorer icon indicating copy to clipboard operation
AzureStorageExplorer copied to clipboard

Additional operators on the query builder window for string types

Open samodovdi opened this issue 7 years ago • 4 comments
trafficstars

Storage Explorer Version: 1.3.1 Platform/OS Version: macOS Architecture: x64

Would be great to have such operators as 'contains', 'starts with', 'end with' for string types on the query builder

samodovdi avatar Aug 10 '18 12:08 samodovdi

The addition of more operators is dependent on the platform. We'll leave this open so we can track it.

MRayermannMSFT avatar Mar 16 '20 17:03 MRayermannMSFT

why this issue/feature is closed? won't be implemented? AzureStorageExplorer - this one - https://archive.codeplex.com/?p=azurestorageexplorer implemented it this way:

` CloudTable table = tableClient.GetTableReference(tableName);

            // Query the table and retrieve a collection of entities.

            var query = new TableQuery<ElasticTableEntity>();

            IEnumerable<ElasticTableEntity> entities = null;

            if (EntityQueryEnabled)
            {
                EntityQuery.IsChecked = true;

                IEnumerable<ElasticTableEntity> q = null;

                switch (EntityQueryCondition[0])
                {
                    case "equals":
                        q = table.ExecuteQuery(query).Where(e => e.Value(EntityQueryColumnName[0]) == EntityQueryValue[0]).Select(e => e);
                        break;
                    case "does not equal":
                        q = table.ExecuteQuery(query).Where(e => e.Value(EntityQueryColumnName[0]) != EntityQueryValue[0]).Select(e => e);
                        break;
                    case "contains":
                        q = table.ExecuteQuery(query).Where(e => e.Value(EntityQueryColumnName[0]).Contains(EntityQueryValue[0])).Select(e => e);
                        break;
                    case "starts with":
                        q = table.ExecuteQuery(query).Where(e => e.Value(EntityQueryColumnName[0]).StartsWith(EntityQueryValue[0])).Select(e => e);
                        break;
                    case "ends with":
                        q = table.ExecuteQuery(query).Where(e => e.Value(EntityQueryColumnName[0]).EndsWith(EntityQueryValue[0])).Select(e => e);
                        break;
                }

... `

samodovdi avatar Mar 20 '20 19:03 samodovdi

sorry, the other issue was closed as duplicated. @MRayermannMSFT any progress on this?

samodovdi avatar Oct 25 '21 13:10 samodovdi

Any update on this? Can't really wait for Dec 16, 2028 milestone

adityadeshpande avatar Mar 26 '25 05:03 adityadeshpande