473,396 Members | 1,895 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,396 software developers and data experts.

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.sln, 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 1428
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.sln, 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.googlegr oups.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.sln, 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.googlegr oups.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
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? ...
7
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 ==...
3
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...
0
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...
0
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 -...
0
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:...
5
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...
19
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...
9
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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,...
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
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,...

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.