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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:19:07+00:00 2026-06-08T13:19:07+00:00

The Problem Initiating a new entity(call it " TargetEntity ") to insert, I’m using

  • 0

The Problem

Initiating a new entity(call it "TargetEntity") to insert, I’m using another entity properties(call it "TemplateEntity").

some properties of TargetEntity are getting the values of TemplateEntity properties and its’ navigation properties.

in some special cases, I have to make some changes on TemplateEntity props and navigation props values.
For example assume this is the TargetEntity to be fill:

TargetEntity
- prop1
- prop2
- prop3

and this is the TemplateEntity with value:

TemplateEntity
- prop1
- NavProp1.prop2
- NavProp2.prop3

I want to apply some changes on TemplateEntity like this:

TemplateEntity to be applied
- prop1 * index1
- NavProp1.prop2 * 0
- NavProp2.prop3 *index2

Restrictions and Conditions

  1. I’m working with entities, no POCO, no DTO. there are many nested navigation properties and it’s very complex to make a flat object of it, or clone an offline nested object.

  2. The TemplateEntity is getting used in many method. Each method have their own Context and save changes (i.e logs and such things).

The Question

How can I save changes, and avoid an entity like TemplateEntity and its’ navigations change in DB?

  • 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-08T13:19:08+00:00Added an answer on June 8, 2026 at 1:19 pm

    It is not possible to exclude / skip entity update from unit of work unless you:

    • Reconfigure states in the graph for that entity – it means you must traverse the entity graph and set everything to unchanged
    • Not include the entity in unit of work in the first place – the entity graph must not be attached to the context – this usually leads to cloning of object graph which is only possible through serialization and deserialization (your entities already support this through DataContractSerializer).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a very strange problem with an ASP.Net project using an Entity
Problem: I am trying to build a recursive tree using a function and data
Problem: I'm streaming my video from a php file with stream_get_contents(); using Flowplayer as
Problem Using Director 11.5 and Windows 7, with MouseWheel Xtra (wheelmouse.zip), I have the
In a nutshell, this is my problem: private string publicKeyString = MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVGUzbydMZS+fnkGTsUkDKEyFOGwghR234d5GjPnMIC0RFtXtw2tdcNM8I9Qk+h6fnPHiA7r27iHBfdxTP3oegQJWpbY2RMwSmOs02eQqpKx4QtIjWqkKk2Gmck5cll9GCoI8AUAA5e0D02T0ZgINDmo5yGPhGAAmqYrm8YiupwQIDAQAB; /* Some
I'm trying to implement an ejb-call by using JNDI-naming. Setup: JBoss-6.1.0.Final ear-deploy: gwt.war ejb.jar
I have a strange problem by initiating a class object. The problem is as
I'm constantly getting the following exception which is caused by a user initiating a
I am using SoapClient to send some data from a PHP site to a
I am initiating drag and drop from my WinForms application using this simple IDataObject

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.