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 7928455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:44:14+00:00 2026-06-03T19:44:14+00:00

For me json is lowercase. So I have defined simple type like this: public

  • 0

For me json is lowercase.

So I have defined simple type like this:

public class Profile: RootAggregate
{
    [JsonProperty("name")]
    public string Name { get; set; }
}

Using ravendb, I can persist it:

documentSession.Store(new Profile { Name = "myprofile" });

and then retrieve:

var profile = session.Query<Profile>()
                     .Customize(x => x.WaitForNonStaleResultsAsOfNow())
                     .Where(x => x.Name == "myprofile")
                     .SingleOrDefault();

which returns… NULL.

If the attribute [JsonProperty("name")] wouldn’t be there, which results in:

the query works ok.

How to preserve the attribute and force the query to work as expected ?

Btw: I’m using RavenDB – Build #888

  • 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-03T19:44:15+00:00Added an answer on June 3, 2026 at 7:44 pm

    This is probably an issue in the LINQ query inspector. Please open an issue about it the following link, and if you can, supplying a failing test is the best.

    http://issues.hibernatingrhinos.com/issues

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

Sidebar

Related Questions

My JSON string looks like this (contained in a string variable called sJSON ):
JSON string: '[Colour,Audio,Effect]' I'm having an issue iterating through this, albeit it's a simple
I have [Imported] public sealed class ServerResult : Record { public string Message; public
My json output look like [{id:2,name:AAA},{id:1,name:BBB}]. I want to parse this using Qjson in
There is simple JSON serialization module with name simplejson which easily serializes Python objects
My JSON response looks like this: { themes: [ [ Direction des Routes Secteur
My JSON response is like this: { results : [ { address_components : [
My json object looks like: User { ID: 234, name: 'john', ..); I want
Json.Net has no problem serializing an overridden property in a child class. public override
Json Problem : I have this formatted JSON { Table1:[ { TableName:LoadDistributor, Description:Distributor ,

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.