LINQ. Remove problem.

S

shapper

Hello,

I was using the following LINQ code in VS 2008 Beta 2:

MyDbDataContext database = new CodeDataContext();
database.Tags.remove(tag);

Now, with VS 2008 final release, I get an error on Remove:
"Remove is not a member of 'System.Data.Linq.Table(Of Tag)"

How can I solve this?

What has changed?

Thanks,
Miguel
 
J

Jon Skeet [C# MVP]

shapper said:
I was using the following LINQ code in VS 2008 Beta 2:

MyDbDataContext database = new CodeDataContext();
database.Tags.remove(tag);

Now, with VS 2008 final release, I get an error on Remove:
"Remove is not a member of 'System.Data.Linq.Table(Of Tag)"

How can I solve this?

What has changed?

The name of the method. A quick look at the documentation for Table<T>
reveals DelegateOnSubmit, which I strongly suspect is what you're
after.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top