score:2
Accepted answer
Try to use Z.EntityFramework.Plus.EF6 library:
db.Item2.Where(x => x.TemplateID == idT).Delete();
Source: stackoverflow.com
Related Articles
- Entity Framework (model-first) deleting multiple entries with same attribute
- map one to one with multiple primary key columns entity framework code first
- Deleting multiple records with Entity Framework using a single LINQ query
- Entity Framework Code First String Comparison with Oracle Db
- most efficient Entity Framework Code First method of flattening / projecting parent entity with specific child
- Multiple joins to the same table with the Entity Framework
- Entity Framework multiple optional relationships of same type with fluentapi
- Proper Linq Query for objects with many to many relation ship generated with code first entity framework
- Map extra column from stored procedure to Entity Framework code first model
- Entity Framework Core: many-to-many relationship with same entity
- Entity Framework 6 Code First Custom Functions
- Deleting an item with entity framework
- Entity Framework - An item with the same key has already been added. - Error when trying to define foreign key relationship
- Entity Framework Core where clause with multiple values
- Entity Framework Core LINQ query with multiple where clauses
- Dynamically Instantiate Model object in Entity Framework DB first by passing type as parameter
- Entity Framework Code First without app.config
- How to get Multiple Result Set in Entity Framework using Linq with C#?
- Select data from multiple unrelated tables with LINQ to Entity Framework
- Entity Framework Code First using context in Controller
- Update records with Entity Framework without loading in first
- many to many mapping in entity framework code first
- Does Entity Framework query the database multiple times if I use different fields of the same Linq query at different times?
- How to Create a Run-Time Computed (NotMapped) Value in Entity Framework Code First
- Join multiple entities, 2 DbSet with one List in Entity framework
- get attribute value from multiple elements with same name and attribute value of one other element in xml
- updating data in many-to-many relationship in entity framework in code first existing database
- Entity framework - select by multiple conditions in same column - referenced table
- create appropriate model with linq and entity framework
- Multiple outer join using Linq with 2 joins to the same table/object. Got the SQL, need the Linq to Entity
- LINQPAD - Read in a csv and store columns into lists
- c# - linq to xml: read a xml config file
- Generating Permutations using LINQ
- While "editing" an LINQ to SQL entity, can I simply assign one item to another?
- C# LINQ case when
- Windows phone 7 xml linq queries trouble
- Entity framework error: context changed since the database was created
- Generate a collection of dates from an objects collection
- Constructing a SOAP envelope using LINQ to XML
- converting from linq var result to another object
- get most frequently used values with linq
- Class with multiple List Properties of same type but with different restrictions
- Executing linq lamda expression as parameter in System.Reflection Invoke Method calling
- Calling LINQ with predicate expression through ILGenerator
- Linq grouping based on requirements
- Order by is not working in MVC Linq query
- Best method for turning a bool list to a linq query against string values
- Entity Framework using Sqlite.NET complains that APPLY joins are not supported
- Distinct in LINQ and change result type
- How to get the sum of the volume of highest and lowest priced items in linq