473,408 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Linq. Remove. VS 2008 Final Version

Hello,

I was using LINQ with VS 2008 Beta 2 and suddenly after installed
VS2008 final version I get an error.

My code is really simple:

Dim database As New MyDbDataContext
Dim tag = (From t In database.Tags _
Where t.TagID = index).Single
database.Tags.Remove(tag)
database.SubmitChanges()

I get an error on line 'database.Tags.Remove(tag)':
Remove is not a member of 'System.Data.Linq.Table(Of Tag)
Does anyone has any idea what might be wrong?

Thanks,
Miguel
Dec 11 '07 #1
1 2945
shapper wrote:
Hello,

I was using LINQ with VS 2008 Beta 2 and suddenly after installed
VS2008 final version I get an error.

My code is really simple:

Dim database As New MyDbDataContext
Dim tag = (From t In database.Tags _
Where t.TagID = index).Single
database.Tags.Remove(tag)
database.SubmitChanges()

I get an error on line 'database.Tags.Remove(tag)':
>Remove is not a member of 'System.Data.Linq.Table(Of Tag)

Does anyone has any idea what might be wrong?

Thanks,
Miguel
Change:

database.Tags.Remove(tag)

to:

database.Tags.DeleteOnSubmit(tag)

There were some changes to the LINQ classes in between Beta 2 and Final
Dec 12 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: GS | last post by:
Is lint stable enough for production? what is memory consumption like? I am using 988M out of 3876M when I run vs cs with dotnet 2 along with a VPC VM. actually I only have GAB of real RAM
0
by: shapper | last post by:
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...
4
by: cj | last post by:
Can I use LINQ in VB .Net 2008 to get to a Visual FoxPro Table? I've seen demos of it with SQL Server but they've used it with a server browser and I don't think that'd work when I need to see VFP...
7
by: Adrian | last post by:
Hi, I'm trying to add caching to our asp app, but am having problems with the SQLCacheDependancy not invalidating the cache when the table changes. Using vs2008, sqlserver 2005 developer edition....
0
by: Fortis Florin | last post by:
CALL FOR PAPERS: Workshop on Workflow and Process Management (WfPM'08), September 2008, Timisoara, Romania ...
0
by: Fortis Florin | last post by:
2nd CFP: Workshop on Workflow and Process Management (WfPM'08), September 2008, Timisoara, Romania EXTENDED DEADLINES...
9
by: =?Utf-8?B?cmF1bGF2aQ==?= | last post by:
Hi all: after reading different places/sites about linq... I ran into these questions: 1. What framework do we need to run linq ? (does it depend on what version of visual studio we have?) how...
0
by: Fortis Florin | last post by:
Final CFP: Workshop on Workflow and Process Management (WfPM'08), September 2008, Timisoara, Romania EXTENDED DEADLINES ___________________________________________________________________________­...
4
by: =?Utf-8?B?RXJpYyBGYWxza2Vu?= | last post by:
We’re storing our main entity in an insert only table which stores the history of past revisions, but we’re facing problems with storing this history as LINQ will only update the entity, and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.