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

  • Home
  • SEARCH
  • 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 4113732
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:21:49+00:00 2026-05-20T22:21:49+00:00

Having problems with my ASP.NET MVC2 project. I’m using Fluent NHibernate as ORM, and

  • 0

Having problems with my ASP.NET MVC2 project. I’m using Fluent NHibernate as ORM, and I really like it. The problems that I have is with caching(I think). I have for example a JQuery DataTable that is getting data with ajax from the database through a controller. The DataTable lists different stuff from the database, If I remove or add some posts, the data doesent seem to update, even if the calls are getting made and NHibernate does what it is supposed to do(I think).

The data only updates as it should If I rerun the project(programming locally), but sometimes even that doesent work.

Is caching the problem? Is it NHibernate caches or the browser?

  • 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-05-20T22:21:50+00:00Added an answer on May 20, 2026 at 10:21 pm

    If data is updated at the database and not through the application, nHibernate will not know about the data, and when queried for again by a List(), or Load() will not return to the database to acquire the full data set.

    Suggestions here are:

    • For this testing create some means of
      putting data in the database via
      nHibernate
    • Or whilst in a testing
      stage, have the service method that
      is being called by jQuery Clear the
      cache each time, thus forcing
      nHibernate back to the database with
      each request.

    This can be done completely using ISession.Clear(), or the known objects could be evicted using Evict().

    Not really a go-live option though because it is advantages to have nHibernate caching data.

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

Sidebar

Related Questions

I have an ASP.NET MVC2 application in development and I am having problems rendering
I'm having a strange problem here... I have an ASP.NET 3.5 application that has
I'm working on a ASP.NET MVC2 project, for which I have configured the localisation
I'm having a problem with the FCKEditor html editor for ASP.NET in that when
I'm developing a website (using asp.net by the way) and I'm having a problem
I'm having problems using textures that are larger than the OpenGL window or the
I’m having problems with the AntiForgeryToken in ASP.Net MVC. If I do an iisreset
Enviroment: asp.net framework 2.0 I'm having problems with the Delete method of and ObjectDataSource
I'm working on ASP.NET 4.0 and I'm having problems for saving the selected value
I have downloaded the ASP.Net MVC2 RTM source code and I'm trying to run

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.