Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8871541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:00:56+00:00 2026-06-14T18:00:56+00:00

I have a Person class that I save to a table in Azure Table

  • 0

I have a Person class that I save to a table in Azure Table Storage.

I want to query it with one of the following queries:

var query = from getThis in _serviceContext.CreateQuery<PersonForSearch>(_tableName)
                        where getThis.Name.Contains(searchTerm)
                        select new Person
                        {
                            PartitionKey = getThis.PartitionKey, 
                            RowKey = getThis.RowKey,
                            Name = getThis.Name
                        };

OR

CloudTableQuery<Person> query =
                 (from getThis in _serviceContext.CreateQuery<Person>(_tableName)
                  where getThis.Name.Contains(searchTerm)
                  select getThis).AsTableServiceQuery<Person>();

With either one, I get the following error, thrown on the foreach loop I use to loop through the results of the query:

NotImplemented
The requested operation is not implemented on the specified resource.

I thought that perhaps this resulted from the fact that my Person model does not inherit from TableServiceEntity (I refuse to introduce that coupling – so I decorated it with this attribute instead: [DataServiceKey(“PartitionKey”, “RowKey”)] and manually gave it a PartitionKey and RowKey property.

So I tried to create an entity that DID inherit from TableServiceEntity, which would allow me to query this table (as you can see from the queries, the only property I’m worried about is Name).

This new entity is as follows:

class PersonForSearch : TableServiceEntity
{
    public string Name { get; set; }
}

However, this hasn’t solved the problem. Is this error talking about some other resource than the class I’m using in my query?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:00:57+00:00Added an answer on June 14, 2026 at 6:00 pm

    There are a two issues here:

    1) Azure Table Storage does not support Contains() method. This is the reason you’re getting Not Implemented exception. ATS does support string.Compare() for any range-type operations on strings

    2) In order to retrieve the data effectively, you can only search on PartitionKey or on PartitionKey/RowKey combination. Any other query will result in either errors or the download of the full table into client’s memory (can’t remember which one). If your table is small, download it into memory completely by dropping the ‘where’ clause and afterwards use Linq for Objects to query however you like. If it is large, find a way to compare against PartitionKey or PartitionKey/RowKey fields

    If I’m understanding what you’re trying to do correctly, is that you’re trying to do a partial string-search through employee table. Overall, ATS is not a very good solution for doing string-based searches (unless these are “starts with” searches on PartitionKey or PartitionKey/RowKey fields). I’d like to highly recommend Lucene.NET for doing text-based searches in the cloud. There is an Azure Directory API for Lucene.NET available as well. Or switch to SQL Azure

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an simple class that I get from a webservice. public class person
Scala programmer should have known that this sort of writing : class Person{ var
I have an iOS project that sends a Person class with one attribute name
Say I have a method, and within that method it instantiates a Person class:
I have a Client class like that: public class Client { public Person Pers
I have an object that has a child collection: class Person { public string
Say I have a class which represents a person, a variable within that class
I have a class Client like that: public class Client { public Person Pers
Imagine that you have a Person entity with a one to one relationship with
I have the following classes: public class Person { [Key] public Guid Id {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.