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 Query
- 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?
More Query from same tag
- TransactionScope, linq and strange transaction manager issue (HRESULT: 0x8004D024)
- ViewBag select list LINQ table join
- C# LINQ group collection by attribute then sort each group by explicit order defined by a list
- LINQPad access SqlOutputWriter from custome library
- Linq question about grouping something that can change?
- How do I convert this SQL into LINQ?
- Linq putting multiple results in one place
- Finding records with similar and distinct fields
- Linq To XSD at runtime
- List where Clause
- How to convert a SQL with multiple left joins to an Entity Framework LINQ statement using Include methods (No Join methods)?
- How to select an id from a xml element with linq
- Linq updates extra rows
- LINQ IQueryable Check if Empty without Enumerating
- .Net - Find max value in DataTable
- list of object bind to another list of object
- Except() gives wrong output for two arrays?
- c# entities many to many nested entities count is zero
- Linq Contains Query from Table List
- Exception message trying to obtain the Window handle of a process
- Compare list of string with string in linq
- Using DateTime.Quarter in LinQ Group
- ascending/descending in LINQ - can one change the order via parameter?
- linq query grouping and joining getting incorrect sum
- Linq to XML treating results individually instead of listing
- How to convert IQueryable<T> to Expression<Func<T, bool>>?
- LINQ to Entities: Why can't I use Split method as condition?
- Linq - Order by number then letters
- Linq to entities prob after update to MVC5
- LINQ Hierarchical query to return all parents