In EF6 a faster way to do the operation is…
context.Children.RemoveRange(parent.Children)
More Related Contents:
- Entity Framework Code First – two Foreign Keys from same table
- Why use ICollection and not IEnumerable or List on many-many/one-many relationships?
- Validation failed for one or more entities while saving changes to SQL Server Database using Entity Framework
- Entity Framework DateTime and UTC
- Does Entity Framework Code First support stored procedures?
- Fluent API, many-to-many in Entity Framework Core
- Understanding ForeignKey attribute in entity framework code first
- Self-referencing many-to-many recursive relationship code first Entity Framework
- EF4 Code First: how to add a relationship without adding a navigation property
- Entity Framework Code First Date field creation
- Change foreign key constraint naming convention
- summing values of a column based on id [closed]
- MSSQL Error ‘The underlying provider failed on Open’
- Why does the EF 6 tutorial use asynchronous calls?
- Implementing Zero Or One to Zero Or One relationship in EF Code first by Fluent API
- How can I log the generated SQL from DbContext.SaveChanges() in my Program? [duplicate]
- LINQ to Entities only supports casting EDM primitive or enumeration types with IEntity interface
- One to one optional relationship using Entity Framework Fluent API
- Implementing Audit Log / Change History with MVC & Entity Framework
- Entity Framework – Cannot convert lambda expression to type ‘string’ because it is not a delegate type
- Internal .NET Framework Data Provider error 1025
- Can EF automatically delete data that is orphaned, where the parent is not deleted?
- How to filter data using Entity Framework in a way that DataGridView be editable and context track changes?
- get date part only from datetime value using entity framework
- Filtering include items in LINQ and Entity Framework [duplicate]
- ASP.NET Identity – Multiple object sets per type are not supported
- Entity Framework Code Only error: the model backing the context has changed since the database was created
- How are people unit testing with Entity Framework 6, should you bother?
- Duplicate key exception from Entity Framework?
- How do I specify that a property should generate a TEXT column rather than an nvarchar(4000)