473,790 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DLINQ samples won't compile?

I've downloaded the DLINQ samples from Microsoft and have always been
able to compile these in VS.NET 2005 Pro. I have a new project that I
added DLINQ references to and put in a simlpe query. It didn't
compile. I went back to the SampleQueries.s ln, compiled and for the
first time it failed. It keeps looking at the query code as if it were
regular c#. It's wanting ";", which the queries don't use. Same thing
is occuring in my other project.

Has any one run into this and know what the fix is?

Thanks,
Brett

May 15 '06 #1
4 1459
I thought DLINQ was only avaliable in the Beta 2 Versions of Visual Studio
2005 if you downloaded a prototype compiler? I don't think the prototype
compiler works for the released versions of VS2005.

You should be able to download the "Orcas" LINQ CTP at:

http://msdn.microsoft.com/data/ref/linq/

DLINQ is a feature that will be avaliable in the next version of C# and VB.

"Brett Romero" wrote:
I've downloaded the DLINQ samples from Microsoft and have always been
able to compile these in VS.NET 2005 Pro. I have a new project that I
added DLINQ references to and put in a simlpe query. It didn't
compile. I went back to the SampleQueries.s ln, compiled and for the
first time it failed. It keeps looking at the query code as if it were
regular c#. It's wanting ";", which the queries don't use. Same thing
is occuring in my other project.

Has any one run into this and know what the fix is?

Thanks,
Brett

May 16 '06 #2

"Brett Romero" <ac*****@cygen. com> wrote in message
news:11******** **************@ y43g2000cwc.goo glegroups.com.. .
| I've downloaded the DLINQ samples from Microsoft and have always been
| able to compile these in VS.NET 2005 Pro. I have a new project that I
| added DLINQ references to and put in a simlpe query. It didn't
| compile. I went back to the SampleQueries.s ln, compiled and for the
| first time it failed. It keeps looking at the query code as if it were
| regular c#. It's wanting ";", which the queries don't use. Same thing
| is occuring in my other project.
|
| Has any one run into this and know what the fix is?
|
| Thanks,
| Brett
|

Did you read the:
IDE Support (for Visual Studio 2005/C# 2005 Express)
chapter in the "readme for C#.htm"?

Willy.

May 16 '06 #3
Why than does their example compile in VS.NET 2005 release but when I
do my own it doesn't compile. Seems to be fine in the release of
VS.NET. I'm probably missing a file or reference.

Brett

May 16 '06 #4
You need to use the Linq project type. This sets the project to use the new
compiler, otherwise your still using the old compiler which does not know
Linq. I think you can force a normal project to point to the new compiler,
but I lost interest in that method and never got that far.

--
William Stacey [MVP]

"Brett Romero" <ac*****@cygen. com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. .
| Why than does their example compile in VS.NET 2005 release but when I
| do my own it doesn't compile. Seems to be fine in the release of
| VS.NET. I'm probably missing a file or reference.
|
| Brett
|
May 17 '06 #5

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

Similar topics

6
1402
by: Lei Jiang | last post by:
1) Is it support other database other than SQL Server, such as Oracle, Sybase? 2) How about the performance? Does it relay on reflections to bind the value from databse to Entity object? Thanks!
7
1868
by: Senna | last post by:
Hi Have a question about DLinq. The example code floating around looks like this: Northwind db = new Northwind(@"C:\...\northwnd.mdf"); var custs = from c in db.Customers where c.City == "London" select c; How does this work. Will it retreive all the rows from the Customer table
3
1719
by: Chiranjib | last post by:
I have the following queries/Observations about DLINQ. 1. I could not find any direct way of handling many to many relations. Suppose if User and Role are related by a join table UserRole then I should be able to have a collection of Roles in User and vice versa. Which i think is not possible in DLINQ. (Please correct me if I am wrong) 2. State management is handle outside entities. In scenareos where a client grabs a entity from a...
0
1233
by: Scott Nonnenberg [MSFT] | last post by:
This is our first official DLinq chat. We're still early in the planning and development stage for this very cool technology, so we can react to your feedback much more easily. Show up and tell us what's on your mind! Scott Nonnenberg Program Manager Visual C# Team DLinq "The LINQ Project is a codename for a set of extensions to the .NET
0
1106
by: Scott Nonnenberg [MSFT] | last post by:
The DLinq team will be ready and waiting for your questions and comments at this date and time at this location: http://msdn.microsoft.com/chats/chatroom.aspx. This is otherwise known as a chat - a great opportunity to speak directly with the people who develop the software you might just end up using! See you there! Scott Nonnenberg Program Manager Visual C# Team
0
1168
by: Scott Nonnenberg [MSFT] | last post by:
Show up and talk to members of the DLinq team. What's DLinq, you ask? Well, to understand that you'll need to know what LINQ is - you can start with the blurb below, read more about it here: http://msdn.microsoft.com/data/linq/, and install the latest CTP: http://www.microsoft.com/downloads/details.aspx?familyid=1e902c21-340c-4d13-9f04-70eb5e3dceea&displaylang=en It's very cool stuff. Scott Nonnenberg Program Manager
5
2119
by: Andrus | last post by:
I need to use lambda expressions or other way to specify default query for dlinq entity type. Code below causes compile error shown in comment. How to fix ? Maybe to use ? Andrus. using System; using System.Linq;
19
1529
by: Andrus | last post by:
I need to repeatedly execute same queries which returns single entity by id, like: Customer cust = (from c in db.Customers where c.CustomerID=="AIRBU" select c).SingleOrDefault(); DLinq holds tracked object list internally so customer "AIRBU" exists in memory.
9
1688
by: Marc Gravell | last post by:
How to fix ? Write it the way that you know works... (i.e. the one you commented out), or write that parses the input string doing a Split on '.', and uses reflection to navigate the child hierarchy. Which isn't something I have time to do right now... Marc
0
9512
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
10413
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...
0
10200
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10145
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
9021
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...
1
7530
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4094
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
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.