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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:44:04+00:00 2026-05-16T17:44:04+00:00

for reference I’m using version 2.1.2.4000 of Nhibernate. I’ve spent pretty much an hour

  • 0

for reference I’m using version 2.1.2.4000 of Nhibernate.

I’ve spent pretty much an hour or so reading up the difference between Merge() and SaveOrUpdate() and no explanation attempts to just answer a really simple question??

I know that Merge() will do all the magic to synchronize the detached objects with cached or out of date instances.

BUT, once I’ve “merged”, and I do not intend to change the entity any longer…

Do I have to Still Call SaveOrUpdate?

cheers

  • 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-16T17:44:05+00:00Added an answer on May 16, 2026 at 5:44 pm

    Check another thread. The point is that Merge() just puts together states from the session (from the database) and your detached object. You then should not use detached object any more but use newly returned object from the session that was merged. This object, of course, has to be “saved or updated” in order to persist changes because it has changed due to Merge operation.

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

Sidebar

Related Questions

With reference to apache commons dbcp, what is the difference between PoolingDataSource and PoolingDriver?
With reference to the last part of answer given here: What's the difference between
Object reference not set to an instance of an object. using System; using System.Collections.Generic;
Reference:Oracle documentation Oracle Database enforces all PRIMARY KEY constraints using indexes Q's 1> I
In reference to the post below, where it says I should increase the version
In reference to the accepted solution in: SO:expression_evaluator Can anyone provide a version that
With reference to this question , I would like to know which version (.net
With reference to this question , I would like to know which version (.net
Please reference the this example : I'm trying to create vertical dividers between my
Reference I am using ActiveSheet.Buttons.Add() to add format control buttons to a worksheet. This

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.