Delete entity or collection in Linq to SQL without getting them (msmvps.com)
published 1 year, 3 months ago, submitted by
oazabir(1530) 1 year, 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: 508
tags:
LINQ another
Everyones tags:
Your Tags: