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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:23:50+00:00 2026-06-14T00:23:50+00:00

I have a web project that stores objects in raven db. For simplicity the

  • 0

I have a web project that stores objects in raven db. For simplicity the classes live in the web project.

I now have a batch job that is a separate application that will need to query the same database and extract information from it.

Is there a way I can tell raven to map the documents to the classes in the batch job project that have the same properties as those in the web project.

I could create a shared dll with just these classes in if that’s needed. seems unnecessary hassle though

  • 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-14T00:23:51+00:00Added an answer on June 14, 2026 at 12:23 am

    As long as the structure of the classes you are deserializing into partially matches the structure of the data, it shouldn’t make a difference.

    The RavenDB server doesn’t care at all what classes you use in the client. You certainly could share a dll, or even share a portable dll if you are targeting a different platform. But you are correct that it is not necessary.

    However, you should be aware of the Raven-Clr-Type metadata value. The RavenDB client sets this when storing the original document. It is consumed back by the client to assist with deserialization, but it is not fully enforced. The logic basically is this:

    is there ClrType metadata?
      if yes, do we have that type loaded in the current app domain?
        if yes, then deserialize into that type
    
    if none of the above, then deserialize dynamically and cast into the type
    requested (basically, duck-typing)
    

    You can review this bit of the internals in the source code on github here.

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

Sidebar

Related Questions

I have a web application project that works with a quite large database (over
I have a google web application project that I want to host on github.
I am starting a web application project that will have an Adobe Flex front-end
I have a custom HttpModule rewrite engine in an existing web application project that
I have been working on a web project that stores locations for users. The
I have a couple of classes that I have created for my web project
I have inherited a web project that is perl based and I'm attempting to
I have inherited a web site project that makes use of a number of
We have a updatable web site project that is written in c#, it has
I have an ASP.NET VB.NET web project that references a VB.NET class library. I

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.