473,763 Members | 8,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.R emove(tag)
database.Submit Changes()

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

Thanks,
Miguel
Dec 11 '07 #1
1 2961
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.R emove(tag)
database.Submit Changes()

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

Does anyone has any idea what might be wrong?

Thanks,
Miguel
Change:

database.Tags.R emove(tag)

to:

database.Tags.D eleteOnSubmit(t ag)

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
1495
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
1265
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 Remove: "Remove is not a member of 'System.Data.Linq.Table(Of Tag)"
4
2162
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 tables.
7
1550
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. So far I've added the following to the application_start event.. System.Data.SqlClient.SqlDependency.Start("connectionstring as the sa user") and against the db, I did
0
1510
by: Fortis Florin | last post by:
CALL FOR PAPERS: Workshop on Workflow and Process Management (WfPM'08), September 2008, Timisoara, Romania ___________________________________________________________________________________________________________________ WfPM'08 - Workshop on Workflow and Process Management in conjunction with SYNASC-2008 10th International Symposium on
0
1402
by: Fortis Florin | last post by:
2nd CFP: Workshop on Workflow and Process Management (WfPM'08), September 2008, Timisoara, Romania EXTENDED DEADLINES ______________________________________________________________________________________________ WfPM'08 -- Workshop on Workflow and Process Management in conjunction with SYNASC-2008 10th International Symposium on
9
2503
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 about vs2008? is it different name space or framework for linq xml or linq sql? ( 2. do we need to have references to what linq's dlls. or namespaces? system core? 3. what name spaces are needed?
0
1618
by: Fortis Florin | last post by:
Final CFP: Workshop on Workflow and Process Management (WfPM'08), September 2008, Timisoara, Romania EXTENDED DEADLINES ___________________________________________________________________________­ ___________________ WfPM'08 -- Workshop on Workflow and Process Management in conjunction with September 29, 2008
4
2188
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 not reinsert it with a different revision number. Compounding the issue, we’ve also got an associated table storing properties for our entities which is not revisioned, but we still want changes to the children of our entity (additions, changes...
0
9564
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9387
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10148
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9938
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8822
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.