Delete entity or collection in Linq to SQL without getting them(msmvps.com)
submitted by
oazabir(1790) 3 years, 3 months ago
In order to delete an entity or a collection of entity in Linq to SQL, you have to first get them and then delete them. This requires additional database roundtrip. Here's a strongly typed maintenance free way to delete entities directly using their primary key.
|category: Linq
|Views: 696
tags:
LINQ another
Everyones tags:
Your Tags: