score:1
Accepted answer
As long as the relationship exists in your data model a call to context.SubmitChanges should save the parent object as well as the child objects if they are loaded and have changed. That's the beauty of L2S (and other orms).
Source: stackoverflow.com
Related Articles
- Persisting Lazy Loaded Properties
- Why is my code doing lazy loading even after I turned it off at every possible point?
- LINQ Source Code Available
- .NET 4 Code Contracts: "requires unproven: source != null"
- Entity Framework 6: virtual collections lazy loaded even explicitly loaded on a query
- Is File.ReadAllLines lazy loaded when using with LINQ Where?
- creating Linq to sqlite dbml from DbLinq source code
- source code for LINQ 101 samples
- Linq lazy loading, (EF Code first, Web.API and MVC)
- How to sort list on multiple properties in one line of code in Linq
- How to Lazy Load child object with string primary key in Entity Framework Code First?
- Get Count of Lazy Loaded Child Collection Using LINQ and Entity Framework
- .Contains() on 2 properties in EF Code First
- List or Array of String Contain specific word in Html Source Code
- c# Linq or code to extract groups from a single list of source data
- How to join columns or properties of entities that belongs as many relationship to another entity in .NET EF Code First
- Convert string[] to int[] in one line of code using LINQ
- LINQ: Select an object and change some properties without creating a new object
- Code equivalent to the 'let' keyword in chained LINQ extension method calls
- How do I use LINQ to obtain a unique list of properties from a list of objects?
- Value cannot be null. Parameter name: source
- The specified type member 'Date' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties
- Convert a list of objects to an array of one of the object's properties
- Set multiple properties in a List<T> ForEach()?
- Linq code to select one item
- C# - code to order by a property using the property name as a string
- Only initializers, entity members, and entity navigation properties are supported
- How do I find the text within a div in the source of a web page using C#
- Roslyn failed to compile code
- Why are some object properties UnaryExpression and others MemberExpression?
- Spliting object using reflection
- Dynamic Where in Linq with Entity Framework
- Unable to cast object
- Sum of hierarchical data using LINQ?
- DataReader must be closed First and my LINQ Query
- C# LINQ, Remove all elements that are equal
- Optimize/faster choice than "not all" in LINQ
- Typecast each object in an array on a single line of code, using LINQ
- Filter a collection with LINQ vs CollectionView
- Can this fragment of XML be parsed with LINQ?
- Linq - What is the quickest way to find out deferred execution or not?
- Linq Read XML with <br> tag
- c# Remove rows from csv
- Linq sql - where should I put phrase with "where"
- Linq Group by having
- reading a empty cell, gives object reference error
- Convert datarow(only single column) to a string list
- Condense null check for Linq statement in razor page to 1 line
- ASP MVC: ViewModel index using master detail linq statement
- Parse XML into collection of Payments containing Invoices using LINQ