LINQ in Action roller

LINQ error when using Remove

I'm learning LINQ and I get an error on line below. Any advice on how to fix? dpcontacts.dpcontacts.Remove(myContacts); Error msg-Cannot remove an enity that has not been attached. Exception below: System.InvalidOperationException was unhandled Message=" Cannot remove an entity that has not been attached ." Source="System.Data.Linq" StackTrace: at System.Data.Linq.Table`1.Remove(TEntity entity) at Dpcontacts.Form1.delete_Click_1(Object sender, EventArgs e) in C:\Users\Ron\Documents\Visual Studio Read More...
Published Thursday, January 31, 2008 8:39 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication