You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- Modern ORMs handle this for you automatically, so I don't understand what the problem is.Robert Harvey– Robert Harvey2016-07-19 15:16:43 +00:00Commented Jul 19, 2016 at 15:16
- @RobertHarvey Which ORM does support detached entities? Or what automated alternative do they provide?Sjoerd222888– Sjoerd2228882016-07-19 15:18:52 +00:00Commented Jul 19, 2016 at 15:18
- 1What problem are you trying to solve? Patterns are solutions to well-known problems, so in order to select the correct pattern, you must first understand the problem. Detached entities are not the problem; they are the solution (if they, in fact, solve whatever actual problem you have).Robert Harvey– Robert Harvey2016-07-19 15:51:49 +00:00Commented Jul 19, 2016 at 15:51
- Okay, so currently you're sending Datasets over the wire to a client, and then getting an updated Dataset back which you then save with a TableAdapter? You will need to modify this pattern to sending just plain objects over the wire, and when you get the updated objects back, you'll need to lean on the ORM framework of your choice to persist the updates. The most reliable way to do this is to load the unmodified entity from the DB with your ORM and apply the updates manually. (unchanged.Name = received.Name, etc.).Spivonious– Spivonious2016-07-26 17:50:21 +00:00Commented Jul 26, 2016 at 17:50
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you