|
|
May 2006 - Posts
-
I got the following exception, "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)" while I was running the following code, [Table(Name="Customers")] public class Customer { [Column (Id=true)] public string CustomerID; private string _City; Read More...
|
-
There is a known issue that smart tags are not working after installing the updated C# language service in the May 2006 LINQ Preview. This is caused by the installer setting an incorrect key on the satellite assembly path. This causes commands to disappear from Visual Studio, including 8 commands that control smart tag display. OtherContextMenus.SmartTag.Generateastubforthismethod OtherContextMenus.SmartTag.Rename OtherContextMenus.SmartTag.Renamewithpreview OtherContextMenus.SmartTag.ReorderParameters Read More...
|
-
Using factory methods to create domain objects is often useful. When doing so, private or internal constructors are required. DLinq does not permit this at present (you get an ArgumentNullException from the constructor of SqlNew). Although it could be argued that this pattern can make some Linq projections more awkward, it is a common OO pattern and it seems (to me) unnecessary to prevent its use. It would also help out in situations where you need to seperate code used when creating 'new' new() Read More...
|
-
Hi, I notice that the AutoGen attribute currently only supports IDENTITY columns. Are there any plans to have support for auto generation on uniqueidentifier column values? Regards Jerrie Pelser Read More...
|
-
Hello, I may not understand DLINQ fully, but what are the advantages of it vs. just using a datatable, dataset etc? Thank you! Edited -Changed LINQ to DLINQ Read More...
|
-
The original announcement became a discussion thread. So separating the announcement and changing this to "no-discussion" thread. Please use one of the non-announcement threads or start a new one. We have the new CTP for you on the LINQ home page . There is one combined MSI for VB and C# developers that contains plenty of goodies: lots of features that you had requested and we had planned in VB, C#, System.Query, DLinq and XLinq. New component - LINQ over DataSet. New samples, visualizers. Read More...
|
-
I know SQL Server is deprecating them (someday), but the following currently does not work... CREATE TABLE Thing ( Id INT, Title NVARCHAR(200), Description NTEXT -- Change to NVARCHAR(MAX) and this will work ) [Table] public class Thing { [Column] public int Id { ... } [Column] public string Title { ... } [Column] public string Description { ... } } Try to update an instance of Thing... UPDATE [Thing] SET [Title] = @p3 FROM [Thing] WHERE ([Title] = @p0) AND ([Description] = @p1) AND ([Id] = @p2) Read More...
|
-
There is a lot written about Mort, Elvis, and Einstein developers. Here is my (in a nutshell) take on them: Mort is someone who doesn't consider programming their main job. Maybe they are a statistician, biologist, or construction estimator, who also knows quite a bit about programming. They are oportunistic, using whatever tool comes to hand that will get the job done. Elvis is a professional programmer. I would consider an Elvis to be a journeyman developer. You can scope out a job and give it Read More...
|
-
It is an interesting process to come up to speed on LINQ and XLinq. As the programming writer who works on XLinq, I fortunately have the capacity to affect how programmers learn about XLinq. One of my pet peeves is documentation that doesn't teach. Too often, documentation is a mishmash of stuff aranged in a hierarchy that is oriented more towards finding out how to do a particular task. No doubt, this is useful, but it is NOT the only usage scenario for documentation, to say the least. For the May Read More...
|
-
Introduction This post contains the nomenclature that I used in the XLinq documentation for the May 2006 CTP. Note that this is not the official list. It may change in the future. query expression This is the term for what has been called "query comprehension" in the past. An example of a query expression is: var z = from c in contacts.Elements() where (string)c.Element("address").Element("state") == "WA" select (string)c.Element("name"); expression When you use the "explicit dot notation", it is Read More...
|
-
Hi, I dont know if someone already answered this question but, how come c#'s version of xlinq (, or c#3.0, or c# orcas, or whatever it's called now) does not include xml literals! I cant imagine a reason not to include thins functionality beyond being too hard to do in c# or something like than. Read More...
|
-
Let's say you build an app that uses a traditional ORM concept of lazy loading. Your app binds an Order object to a grid and lets the user lazily load related objects like OrderLines. Your user - a normal cubicle dweller, queries for an Order and then decides to go get some coffee. She comes back, navigates to OrderLines and ... Oops! Some data changed in between the time the Order was explicitly queries and the OrderLines were implicitly lazily loaded. Of course, the ORM builders know and understand Read More...
|
-
Hi, When starting the installer, I get the message: "Cannot find a valid Product to install LINQ with" and then tells me that I need a version of Visual Studio 2005 installed in the next dialog. I do have Visual Studio 2005 Professional (German) installed and I never had such problems with other previews that involved VS 2005 (e.g. Orcas). I believe that the problem is related to the german language version of VS 2005 since there was also a language problem in the last preview (you had to copy some Read More...
|
-
A new update to LINQ preview is available at MSDN site. What's the coolest new feature? IMHO, its IQueryable<T>. DLINQ's query mechanism has been generalized and available for all to use as part of System.Query. It implements the Standard Query Operators for you using expression nodes to represent the query. Your queries can now be truly polymorphic, written over a common abstraction and translated into the target environment only when you need it to. public int CustomersInLondon( IQueryable Read More...
|
-
Good question - in the kitchen of course! The dish is now ready on the LINQ home page and our VP - Soma has a nice blog about it already. I feel exhausted but happy to be able to share the results of "our" work with you. The word "our" in English is strange - it has both inclusive and exclusive meanings. Here, I mean it the truly in inclusive sense - something that belongs to we + you. Not to be too corny but since the last PDC, many of you pushed us where we needed to be pushed. Repeatedly, you Read More...
|
|
|
|